Added new feature: Put item in any of the 5 unused slots and the item will be dropped by the targeted player.
This commit is contained in:
@@ -243,19 +243,16 @@ public class SpecialPlayerInventory extends PlayerInventory implements ISpecialP
|
||||
i = getReversedArmorSlotNum(i);
|
||||
}
|
||||
|
||||
/*
|
||||
*
|
||||
* //Effects
|
||||
* if(is == this.extra)
|
||||
* {
|
||||
* if(i == 0)
|
||||
* {
|
||||
* itemstack.setData(0);
|
||||
* }
|
||||
* }
|
||||
*/
|
||||
// Effects
|
||||
if (is == this.extra)
|
||||
{
|
||||
owner.getHandle().drop(itemstack);
|
||||
itemstack = null;
|
||||
}
|
||||
|
||||
is[i] = itemstack;
|
||||
|
||||
owner.getHandle().defaultContainer.b();
|
||||
}
|
||||
|
||||
private int getReversedItemSlotNum(int i)
|
||||
|
@@ -243,19 +243,16 @@ public class SpecialPlayerInventory extends PlayerInventory implements ISpecialP
|
||||
i = getReversedArmorSlotNum(i);
|
||||
}
|
||||
|
||||
/*
|
||||
*
|
||||
* //Effects
|
||||
* if(is == this.extra)
|
||||
* {
|
||||
* if(i == 0)
|
||||
* {
|
||||
* itemstack.setData(0);
|
||||
* }
|
||||
* }
|
||||
*/
|
||||
// Effects
|
||||
if (is == this.extra)
|
||||
{
|
||||
owner.getHandle().drop(itemstack);
|
||||
itemstack = null;
|
||||
}
|
||||
|
||||
is[i] = itemstack;
|
||||
|
||||
owner.getHandle().defaultContainer.b();
|
||||
}
|
||||
|
||||
private int getReversedItemSlotNum(int i)
|
||||
|
@@ -243,19 +243,16 @@ public class SpecialPlayerInventory extends PlayerInventory implements ISpecialP
|
||||
i = getReversedArmorSlotNum(i);
|
||||
}
|
||||
|
||||
/*
|
||||
*
|
||||
* //Effects
|
||||
* if(is == this.extra)
|
||||
* {
|
||||
* if(i == 0)
|
||||
* {
|
||||
* itemstack.setData(0);
|
||||
* }
|
||||
* }
|
||||
*/
|
||||
// Effects
|
||||
if (is == this.extra)
|
||||
{
|
||||
owner.getHandle().drop(itemstack);
|
||||
itemstack = null;
|
||||
}
|
||||
|
||||
is[i] = itemstack;
|
||||
|
||||
owner.getHandle().defaultContainer.b();
|
||||
}
|
||||
|
||||
private int getReversedItemSlotNum(int i)
|
||||
|
Reference in New Issue
Block a user