changed getType to getTypeId

This commit is contained in:
PanFritz
2015-01-17 04:36:41 +01:00
parent ea3331f540
commit c062ce6782

View File

@@ -13,7 +13,7 @@ PlayersInQue
@hook.event("entity.ProjectileHitEvent", "high")
def onHit(event):
print "thrown"
if str(event.getEntity().getTypeId()) != str(EntityType.SNOWBALL):
if event.getEntity().getName() != "SNOWBALL":
print "Not a snowball?"
return
print "passed first if statement"