diff options
author | md_5 <git@md-5.net> | 2015-01-05 10:00:26 +1100 |
---|---|---|
committer | md_5 <git@md-5.net> | 2015-01-05 10:00:26 +1100 |
commit | c99cdafd3f534ef0e9c5eebba27ecfc7c91025d4 (patch) | |
tree | 9da5a4ee76db660536bba30e6a6cc209b8017368 /src | |
parent | 9784338acff089ad16bc6399fca13fe83d0a371a (diff) | |
download | craftbukkit-c99cdafd3f534ef0e9c5eebba27ecfc7c91025d4.tar craftbukkit-c99cdafd3f534ef0e9c5eebba27ecfc7c91025d4.tar.gz craftbukkit-c99cdafd3f534ef0e9c5eebba27ecfc7c91025d4.tar.lz craftbukkit-c99cdafd3f534ef0e9c5eebba27ecfc7c91025d4.tar.xz craftbukkit-c99cdafd3f534ef0e9c5eebba27ecfc7c91025d4.zip |
SPIGOT-323: Enchanting tables can no longer be force opened. (reverted from commit 9784338acff089ad16bc6399fca13fe83d0a371a)
Diffstat (limited to 'src')
-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 f5cfdcb1..f045e1c7 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) { |