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

@@ -6,6 +6,7 @@
- Fixed Grid GUI crash (raoulvdberge)
- Fixed device names overflowing Controller GUI (raoulvdberge)
- Fixed high CPU load when Refined Storage GUIs are open (raoulvdberge)
- Fixed not being able to extract Mekanism tanks and bins from the Grid (raoulvdberge)
### 1.5.18
- Added Project E integration for the External Storage on the Transmutation Table (raoulvdberge)

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;