Fixed armor stand protection again.
Thanks for breaking it, Spigot team...
This commit is contained in:
1 parent
68fa7007f0
commit
d18aa6cfe9
1 file changed
+8
@@ -801,6 +801,14 @@ class PlayerEventHandler implements Listener
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//when a player interacts with a specific part of entity...
|
||||||
|
@EventHandler(ignoreCancelled = true, priority = EventPriority.LOWEST)
|
||||||
|
public void onPlayerInteractAtEntity(PlayerInteractAtEntityEvent event)
|
||||||
|
{
|
||||||
|
//treat it the same as interacting with an entity in general
|
||||||
|
this.onPlayerInteractEntity((PlayerInteractEntityEvent)event);
|
||||||
|
}
|
||||||
|
|
||||||
//when a player interacts with an entity...
|
//when a player interacts with an entity...
|
||||||
@EventHandler(ignoreCancelled = true, priority = EventPriority.LOWEST)
|
@EventHandler(ignoreCancelled = true, priority = EventPriority.LOWEST)
|
||||||
public void onPlayerInteractEntity(PlayerInteractEntityEvent event)
|
public void onPlayerInteractEntity(PlayerInteractEntityEvent event)
|
||||||
|
|||||||
Reference in new issue
Block a user