Archiviert
13
0

Fix painting breaking

Dieser Commit ist enthalten in:
Lixfel 2022-03-05 12:27:54 +01:00
Ursprung bbec7ec891
Commit 982b6d2b9e

Datei anzeigen

@ -25,6 +25,8 @@ import org.bukkit.event.EventPriority;
import org.bukkit.event.Listener;
import org.bukkit.event.entity.EntityDamageEvent;
import org.bukkit.event.entity.FoodLevelChangeEvent;
import org.bukkit.event.hanging.HangingBreakByEntityEvent;
import org.bukkit.event.hanging.HangingBreakEvent;
import org.bukkit.event.player.PlayerInteractEvent;
import org.bukkit.event.player.PlayerTeleportEvent;
@ -41,6 +43,11 @@ public class PlayerWorldInteractionListener implements Listener {
event.setCancelled(true);
}
@EventHandler
public void handleHangingEntity(HangingBreakEvent event) {
event.setCancelled(true);
}
@EventHandler
public void handleFoodLevelChange(FoodLevelChangeEvent event) {
event.setCancelled(true);