diff options
author | md_5 <git@md-5.net> | 2015-03-13 17:53:15 +1100 |
---|---|---|
committer | md_5 <git@md-5.net> | 2015-03-13 17:53:15 +1100 |
commit | 6e0120a058db88ac609679116988c672dec2952f (patch) | |
tree | 0bc0eb5129cc74a3bc7f7052274cd876b949ec16 | |
parent | bbe75338c18624e66efd56b599d82eb476e5b76c (diff) | |
download | craftbukkit-6e0120a058db88ac609679116988c672dec2952f.tar craftbukkit-6e0120a058db88ac609679116988c672dec2952f.tar.gz craftbukkit-6e0120a058db88ac609679116988c672dec2952f.tar.lz craftbukkit-6e0120a058db88ac609679116988c672dec2952f.tar.xz craftbukkit-6e0120a058db88ac609679116988c672dec2952f.zip |
SPIGOT-323: Enchanting tables can no longer be force opened. (reverted from commit bbe75338c18624e66efd56b599d82eb476e5b76c)
-rw-r--r-- | src/main/java/org/bukkit/craftbukkit/entity/CraftHumanEntity.java | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftHumanEntity.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftHumanEntity.java index f40e72a9..84999fd4 100644 --- a/src/main/java/org/bukkit/craftbukkit/entity/CraftHumanEntity.java +++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftHumanEntity.java @@ -1,6 +1,5 @@ package org.bukkit.craftbukkit.entity; -import com.google.common.base.Preconditions; import java.util.Set; import net.minecraft.server.*; @@ -285,15 +284,7 @@ public class CraftHumanEntity extends CraftLivingEntity implements HumanEntity { return getHandle().activeContainer.getBukkitView(); } - @Override - public InventoryView openEnchanting(Location location) { - return openEnchanting(location, false); - } - - @Override public InventoryView openEnchanting(Location location, boolean force) { - Preconditions.checkArgument(!force, "Cannot force open enchanting tables!"); - if (!force) { Block block = location.getBlock(); if (block.getType() != Material.ENCHANTMENT_TABLE) { |