Fixed not being able to extract Mekanism tanks and bins from the Grid, fixes #1415

This commit is contained in:
raoulvdberge
2017-10-04 00:15:51 +02:00
parent 99e4ea6d0a
commit d1c275d35e
3 changed files with 5 additions and 2 deletions

View File

@@ -38,7 +38,8 @@ public class ItemGridHandler implements IItemGridHandler {
}
int itemSize = item.getCount();
int maxItemSize = item.getItem().getItemStackLimit(item);
// We copy here because some mods change the NBT tag of an item after getting the stack limit
int maxItemSize = item.getItem().getItemStackLimit(item.copy());
boolean single = (flags & EXTRACT_SINGLE) == EXTRACT_SINGLE;

View File

@@ -38,7 +38,8 @@ public class ItemGridHandlerPortable implements IItemGridHandler {
}
int itemSize = item.getCount();
int maxItemSize = item.getItem().getItemStackLimit(item);
// We copy here because some mods change the NBT tag of an item after getting the stack limit
int maxItemSize = item.getItem().getItemStackLimit(item.copy());
boolean single = (flags & EXTRACT_SINGLE) == EXTRACT_SINGLE;