Skip to content

Commit

Permalink
Fix misunderstanding of generic events.
Browse files Browse the repository at this point in the history
  • Loading branch information
gigaherz committed Nov 14, 2016
1 parent 3716ac9 commit 1ad60d4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ repositories {

apply plugin: 'net.minecraftforge.gradle.forge'

version = "1.7.2"
version = "1.7.3"
group= "gigaherz.survivalist" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
archivesBaseName = "Survivalist-1.10.2"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -290,9 +290,12 @@ public void onTrackDamage(EntityPlayer player)
}

@SubscribeEvent
public void attachCapabilities(AttachCapabilitiesEvent<EntityPlayer> e)
public void attachCapabilities(AttachCapabilitiesEvent<Entity> e)
{
final EntityPlayer entity = e.getObject();
final Entity entity = e.getObject();

if (!(entity instanceof EntityPlayerMP))
return;

if (entity.worldObj == null || entity.worldObj.isRemote)
return;
Expand Down

0 comments on commit 1ad60d4

Please sign in to comment.