Changed datawatcher value for DroppedItem disguise
This commit is contained in:
		| @@ -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); | ||||
|     } | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user