Add SlowMoScript and needed utils
Dieser Commit ist enthalten in:
Ursprung
5bba62d2ef
Commit
dcdd49224b
@ -94,7 +94,7 @@ public class MWTeam {
|
|||||||
Inventory inventory = p.getInventory();
|
Inventory inventory = p.getInventory();
|
||||||
for (int i = 0; i <= 35; i++) { //35 is the last normal inventory slot
|
for (int i = 0; i <= 35; i++) { //35 is the last normal inventory slot
|
||||||
ItemStack itemStack = inventory.getItem(i);
|
ItemStack itemStack = inventory.getItem(i);
|
||||||
if (itemStack != null && itemStack.isSimilar(item) && itemStack.getAmount() + item.getAmount() < itemStack.getMaxStackSize()) {
|
if (itemStack != null && itemStack.isSimilar(item) && itemStack.getAmount() + item.getAmount() <= itemStack.getMaxStackSize()) {
|
||||||
itemStack.setAmount(itemStack.getAmount() + item.getAmount());
|
itemStack.setAmount(itemStack.getAmount() + item.getAmount());
|
||||||
inventory.setItem(i, itemStack);
|
inventory.setItem(i, itemStack);
|
||||||
p.updateInventory();
|
p.updateInventory();
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren