Fixed flashbang glitch
This commit is contained in:
parent
435e74225a
commit
606937d227
@ -95,7 +95,7 @@ public abstract class Grenade extends StrikeItem
|
||||
if (alreadyHas >= _limit)
|
||||
return false;
|
||||
|
||||
if ((player.getInventory().getItem(i) == null || isStack(player.getInventory().getItem(i))) && bestSlot == -1)
|
||||
if ((player.getInventory().getItem(i) == null || UtilInv.IsItem(player.getInventory().getItem(i), Material.AIR, (byte) -1) && bestSlot == -1))
|
||||
bestSlot = i;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user