Browse files

Fractionally slower, but a working fix

  • Loading branch information...
1 parent fe594a7 commit d0d78e33bc29253c85424b0e5d4c6a92f4a64a93 @ElgarL committed Apr 28, 2012
Showing with 1 addition and 4 deletions.
  1. +1 −4 src/com/palmergames/bukkit/towny/listeners/TownyEntityListener.java
View
5 src/com/palmergames/bukkit/towny/listeners/TownyEntityListener.java
@@ -250,11 +250,8 @@ public void onEntityChangeBlockEvent(EntityChangeBlockEvent event) {
event.setCancelled(true);
return;
}
-
- if (event.getEntity() == null)
- return;
- switch (EntityType.fromId(event.getEntity().getEntityId())) {
+ switch (EntityType.valueOf(event.getEntity().getType().getName())) {
case ENDERMAN:

0 comments on commit d0d78e3

Please sign in to comment.