changed annotation for place pixelblock listener

This commit is contained in:
Lars Neuhaus 2024-12-24 12:20:08 +01:00
parent 3ed98d0d9e
commit fc043a2529

View File

@ -15,7 +15,7 @@ import org.bukkit.event.block.BlockPlaceEvent;
import org.bukkit.inventory.ItemStack; import org.bukkit.inventory.ItemStack;
public class PlacePixelBlockListener implements Listener { public class PlacePixelBlockListener implements Listener {
@EventHandler @EventHandler(ignoreCancelled = true)
public void onBlockPlace(BlockPlaceEvent event) { public void onBlockPlace(BlockPlaceEvent event) {
ItemStack usedItem = event.getItemInHand(); ItemStack usedItem = event.getItemInHand();
PixelBlockItem.BlockInfo info = PixelBlockItem.getBlockInfo(usedItem); PixelBlockItem.BlockInfo info = PixelBlockItem.getBlockInfo(usedItem);