From 0a5130b72ce2aa48b5474caa245dd544412b1603 Mon Sep 17 00:00:00 2001 From: Alastair Date: Fri, 8 Apr 2016 13:10:50 +0100 Subject: [PATCH] removed faulty code. not sure why that was in there. --- .../advancedportals/listeners/Listeners.java | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/src/com/sekwah/advancedportals/listeners/Listeners.java b/src/com/sekwah/advancedportals/listeners/Listeners.java index 3e01f7ef..69ab3c94 100644 --- a/src/com/sekwah/advancedportals/listeners/Listeners.java +++ b/src/com/sekwah/advancedportals/listeners/Listeners.java @@ -8,12 +8,8 @@ import com.sekwah.advancedportals.events.WarpEvent; import com.sekwah.advancedportals.portals.AdvancedPortal; import com.sekwah.advancedportals.portals.Portal; import com.sun.org.apache.regexp.internal.RE; -import net.minecraft.server.v1_9_R1.DataWatcherObject; -import net.minecraft.server.v1_9_R1.EntityItem; -import net.minecraft.server.v1_9_R1.ItemStack; import org.bukkit.*; import org.bukkit.block.Block; -import org.bukkit.craftbukkit.v1_9_R1.CraftWorld; import org.bukkit.entity.Entity; import org.bukkit.entity.Player; import org.bukkit.event.EventHandler; @@ -268,16 +264,6 @@ public class Listeners implements Listener { } } - EntityItem item = new EntityItem(((CraftWorld)loc.getWorld()).getHandle()); -try { - Field f = item.getClass().getDeclaredField("c"); - f.setAccessible(true); - DataWatcherObject> ITEM_DATA = (DataWatcherObject>) f.get(item); -} catch (NoSuchFieldException e) { - e.printStackTrace(); -} catch (IllegalAccessException e) { - e.printStackTrace(); -} }