t
This commit is contained in:
parent
dd8bc88494
commit
53729fc61c
@ -171,8 +171,6 @@ public class InteractListener implements Listener {
|
|||||||
|
|
||||||
@EventHandler
|
@EventHandler
|
||||||
public void onEntityDamage(EntityDamageEvent event) {
|
public void onEntityDamage(EntityDamageEvent event) {
|
||||||
Player player = (Player) event.getEntity();
|
|
||||||
|
|
||||||
if (event.getEntityType() == EntityType.VILLAGER) {
|
if (event.getEntityType() == EntityType.VILLAGER) {
|
||||||
event.setCancelled(true);
|
event.setCancelled(true);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user