mirror of
https://github.com/TotalFreedomMC/TF-LibsDisguises.git
synced 2025-02-11 11:40:29 +00:00
Changed datawatcher value for DroppedItem disguise
This commit is contained in:
parent
ed1bcc5ad9
commit
effb4058db
1 changed files with 4 additions and 3 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue