Changed datawatcher value for DroppedItem disguise
This commit is contained in:
parent
ed1bcc5ad9
commit
effb4058db
@ -4,6 +4,7 @@ import me.libraryaddict.disguise.disguisetypes.Disguise;
|
|||||||
import me.libraryaddict.disguise.disguisetypes.FlagWatcher;
|
import me.libraryaddict.disguise.disguisetypes.FlagWatcher;
|
||||||
import org.bukkit.inventory.ItemStack;
|
import org.bukkit.inventory.ItemStack;
|
||||||
|
|
||||||
|
//TODO: Add support for custom items instead of just stone
|
||||||
public class DroppedItemWatcher extends FlagWatcher {
|
public class DroppedItemWatcher extends FlagWatcher {
|
||||||
|
|
||||||
public DroppedItemWatcher(Disguise disguise) {
|
public DroppedItemWatcher(Disguise disguise) {
|
||||||
@ -11,11 +12,11 @@ public class DroppedItemWatcher extends FlagWatcher {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public ItemStack getItemStack() {
|
public ItemStack getItemStack() {
|
||||||
return (ItemStack) getValue(10, new ItemStack(1));
|
return (ItemStack) getValue(5, new ItemStack(1));
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setItemStack(ItemStack item) {
|
public void setItemStack(ItemStack item) {
|
||||||
setValue(10, item);
|
setValue(5, item);
|
||||||
sendData(10);
|
sendData(5);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user