changed annotation for place pixelblock listener
This commit is contained in:
1 parent
3ed98d0d9e
commit
fc043a2529
1 file changed
+1
-1
@@ -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);
|
||||||
|
|||||||
Reference in new issue
Block a user