mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2024-11-27 21:15:57 +01:00
Updated stack command to use ItemType.usesDamageValue().
This commit is contained in:
parent
cb1c1efc35
commit
c82ee055e7
@ -269,7 +269,8 @@ public boolean handleCommand(PlayerChatEvent event) {
|
||||
// Same type?
|
||||
// Blocks store their color in the damage value
|
||||
if (item2.getTypeId() == item.getTypeId() &&
|
||||
(item.getTypeId() != 35 || item.getDamage() == item2.getDamage())) {
|
||||
(!ItemType.usesDamageValue(item.getTypeId())
|
||||
|| item.getDamage() == item2.getDamage())) {
|
||||
// This stack won't fit in the parent stack
|
||||
if (item2.getAmount() > needed) {
|
||||
item.setAmount(64);
|
||||
|
Loading…
Reference in New Issue
Block a user