Fix painting breaking.

This commit is contained in:
TadahTech 2016-08-25 03:54:10 -05:00
parent 77e0090531
commit 41b40fa12c

View File

@ -6,6 +6,7 @@ import org.bukkit.entity.Player;
import org.bukkit.event.Event.Result;
import org.bukkit.event.EventHandler;
import org.bukkit.event.EventPriority;
import org.bukkit.event.hanging.HangingBreakEvent;
import org.bukkit.event.inventory.InventoryClickEvent;
import org.bukkit.event.inventory.InventoryType;
import org.bukkit.event.player.PlayerArmorStandManipulateEvent;
@ -40,6 +41,12 @@ public class NewInteractionsManager extends MiniPlugin
}
}
@EventHandler
public void onPainting(HangingBreakEvent event)
{
event.setCancelled(true);
}
@EventHandler(priority = EventPriority.HIGHEST)
public void onChestInteract(InventoryClickEvent event)
{