From 926a79cc93fe343f425b3a1389179bb5200324b7 Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot Date: Fri, 13 Mar 2015 17:53:15 +1100 Subject: [PATCH] SPIGOT-323: Enchanting tables can no longer be force opened. (reverted from commit 79f99b0c7aa354c72c0aff3a985899f11a2927f0) By: md_5 --- .../org/bukkit/craftbukkit/entity/CraftHumanEntity.java | 9 --------- 1 file changed, 9 deletions(-) diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftHumanEntity.java b/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftHumanEntity.java index f40e72a9a2..84999fd4f6 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftHumanEntity.java +++ b/paper-server/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) {