summaryrefslogtreecommitdiff
path: root/snowbrawl.py
diff options
context:
space:
mode:
authorPanFritz <redstonenoobpan@gmail.com>2015-01-17 04:36:41 +0100
committerPanFritz <redstonenoobpan@gmail.com>2015-01-17 04:36:41 +0100
commitc062ce6782f7c4eb7f14347411ba8c67fcb26870 (patch)
tree42228b47d46d7bd4cc73e0f0e79e3bb2c278c956 /snowbrawl.py
parentea3331f540a3237138e8ac0116ce830d8ccd3187 (diff)
changed getType to getTypeId
Diffstat (limited to 'snowbrawl.py')
-rw-r--r--snowbrawl.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/snowbrawl.py b/snowbrawl.py
index 2449184..dd89083 100644
--- a/snowbrawl.py
+++ b/snowbrawl.py
@@ -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"