Changed datawatcher value for DroppedItem disguise

This commit is contained in:
NavidK0 2016-03-20 23:33:06 -04:00
parent ed1bcc5ad9
commit effb4058db

View File

@ -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);
}
}