mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-25 22:56:45 +01:00
Ignore invalid tool
This commit is contained in:
parent
75fbf67dca
commit
fb0b50218d
@ -72,11 +72,14 @@ public class WESubscriber {
|
|||||||
Player objPlayer = ((BukkitPlayer) player).player;
|
Player objPlayer = ((BukkitPlayer) player).player;
|
||||||
ItemStack item = objPlayer.getItemInHand();
|
ItemStack item = objPlayer.getItemInHand();
|
||||||
if (item != null && !hasMask) {
|
if (item != null && !hasMask) {
|
||||||
|
try {
|
||||||
BrushTool tool = session.getBrushTool(item.getTypeId());
|
BrushTool tool = session.getBrushTool(item.getTypeId());
|
||||||
if (tool != null) {
|
if (tool != null) {
|
||||||
hasMask = tool.getMask() != null;
|
hasMask = tool.getMask() != null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
catch (Exception e) {}
|
||||||
|
}
|
||||||
AbstractDelegateExtent extent = (AbstractDelegateExtent) event.getExtent();
|
AbstractDelegateExtent extent = (AbstractDelegateExtent) event.getExtent();
|
||||||
ChangeSetExtent history = null;
|
ChangeSetExtent history = null;
|
||||||
MultiStageReorder reorder = null;
|
MultiStageReorder reorder = null;
|
||||||
|
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue
Block a user