Fixed #1227 - "Portable Grid Dupe"

This commit is contained in:
raoulvdberge
2017-05-18 20:32:39 +02:00
parent 61237b88f9
commit 96c560db78
2 changed files with 11 additions and 6 deletions

View File

@@ -1,5 +1,8 @@
# Refined Storage Changelog
### 1.4.7
- Fixed bug where Portable Grid would dupe in inventory (raoulvdberge)
### 1.4.6
- Performance improvement to network scanning (raoulvdberge)
- Removed debug output from 1.4.5 (raoulvdberge)

View File

@@ -224,6 +224,7 @@ public class TilePortableGrid extends TileBase implements IGrid, IPortableGrid,
this.energyStorage.setEnergyStored(stack.getCapability(CapabilityEnergy.ENERGY, null).getEnergyStored());
if (stack.hasTagCompound()) {
for (int i = 0; i < 4; ++i) {
RSUtils.readItems(filter, i, stack.getTagCompound());
}
@@ -231,6 +232,7 @@ public class TilePortableGrid extends TileBase implements IGrid, IPortableGrid,
RSUtils.readItems(disk, 4, stack.getTagCompound());
this.redstoneMode = RedstoneMode.read(stack.getTagCompound());
}
markDirty();
}