Fix the cactus dupe

This commit is contained in:
Olof Larsson 2014-10-03 12:52:46 +02:00
parent d0a2133976
commit 7b508a9870
2 changed files with 12 additions and 1 deletions

View File

@ -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,

View File

@ -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;