Fix the cactus dupe
This commit is contained in:
		@@ -324,6 +324,17 @@ public class MConf extends Entity<MConf>
 | 
			
		||||
		Material.LAVA_BUCKET
 | 
			
		||||
	);
 | 
			
		||||
	
 | 
			
		||||
	// The duplication bug found in Spigot 1.8 protocol patch
 | 
			
		||||
	// https://github.com/MassiveCraft/Factions/issues/693
 | 
			
		||||
	public Set<Material> materialsEditToolsDupeBug = MUtil.set(
 | 
			
		||||
		Material.CHEST,
 | 
			
		||||
		Material.SIGN_POST,
 | 
			
		||||
		Material.TRAPPED_CHEST,
 | 
			
		||||
		Material.SIGN,
 | 
			
		||||
		Material.WOOD_DOOR,
 | 
			
		||||
		Material.IRON_DOOR
 | 
			
		||||
	);
 | 
			
		||||
	
 | 
			
		||||
	public Set<Material> materialsDoor = MUtil.set(
 | 
			
		||||
		Material.WOODEN_DOOR,
 | 
			
		||||
		Material.TRAP_DOOR,
 | 
			
		||||
 
 | 
			
		||||
@@ -977,7 +977,7 @@ public class FactionsListenerMain implements Listener
 | 
			
		||||
	// TODO: Possibly incorporate pain build... 
 | 
			
		||||
	public static boolean playerCanUseItemHere(Player player, PS ps, Material material, boolean justCheck)
 | 
			
		||||
	{
 | 
			
		||||
		if (!MConf.get().materialsEditTools.contains(material)) return true;
 | 
			
		||||
		if ( ! MConf.get().materialsEditTools.contains(material) && ! MConf.get().materialsEditToolsDupeBug.contains(material)) return true;
 | 
			
		||||
		
 | 
			
		||||
		String name = player.getName();
 | 
			
		||||
		if (MConf.get().playersWhoBypassAllProtection.contains(name)) return true;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user