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