Updated stack command to use ItemType.usesDamageValue().

This commit is contained in:
sk89q 2011-01-16 09:15:16 -08:00
parent cb1c1efc35
commit c82ee055e7

View File

@ -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);