From effb4058dba08fdf6f03c9553a08f69f7fdb4faf Mon Sep 17 00:00:00 2001 From: NavidK0 Date: Sun, 20 Mar 2016 23:33:06 -0400 Subject: [PATCH] Changed datawatcher value for DroppedItem disguise --- .../disguisetypes/watchers/DroppedItemWatcher.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/main/java/me/libraryaddict/disguise/disguisetypes/watchers/DroppedItemWatcher.java b/src/main/java/me/libraryaddict/disguise/disguisetypes/watchers/DroppedItemWatcher.java index 91ca82ba..236a100e 100644 --- a/src/main/java/me/libraryaddict/disguise/disguisetypes/watchers/DroppedItemWatcher.java +++ b/src/main/java/me/libraryaddict/disguise/disguisetypes/watchers/DroppedItemWatcher.java @@ -4,6 +4,7 @@ import me.libraryaddict.disguise.disguisetypes.Disguise; import me.libraryaddict.disguise.disguisetypes.FlagWatcher; import org.bukkit.inventory.ItemStack; +//TODO: Add support for custom items instead of just stone public class DroppedItemWatcher extends FlagWatcher { public DroppedItemWatcher(Disguise disguise) { @@ -11,11 +12,11 @@ public class DroppedItemWatcher extends FlagWatcher { } public ItemStack getItemStack() { - return (ItemStack) getValue(10, new ItemStack(1)); + return (ItemStack) getValue(5, new ItemStack(1)); } public void setItemStack(ItemStack item) { - setValue(10, item); - sendData(10); + setValue(5, item); + sendData(5); } }