also check NBT of an item

This commit is contained in:
Raoul Van den Berge
2015-12-13 23:24:12 +01:00
parent 04cbbb105f
commit 62cca754a3
7 changed files with 82 additions and 27 deletions

View File

@@ -69,7 +69,7 @@ public class MessagePullFromStorage implements IMessage, IMessageHandler<Message
quantity = item.getQuantity() / 2;
}
ItemStack stack = controller.take(item.getType(), quantity, item.getMeta());
ItemStack stack = controller.take(item.copy(quantity).toItemStack());
if (message.shift) {
// @TODO: This doesn't work