mirror of
https://github.com/GTNewHorizons/Draconic-Evolution.git
synced 2026-11-28 15:56:18 +00:00
fix chaos shard dupes
This commit is contained in:
1 parent
6a9adc80d7
commit
d27394af29
2 files changed
+5
-4
No files matched your search
+1
-3
@@ -724,9 +724,7 @@ public class TileReactorCore extends TileObjectSync implements IInventory {
|
||||
|
||||
@Override
|
||||
public ItemStack getStackInSlotOnClosing(int i) {
|
||||
ItemStack item = getStackInSlot(i);
|
||||
if (item != null) setInventorySlotContents(i, null);
|
||||
return item;
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
+4
-1
@@ -294,10 +294,13 @@ public class TileReactorStabilizer extends TileEntity
|
||||
@Override
|
||||
public void setInventorySlotContents(int i, ItemStack stack) {
|
||||
TileReactorCore core = getMaster();
|
||||
core.items[0] = stack;
|
||||
core.items[i] = stack;
|
||||
if (stack != null && stack.stackSize > getInventoryStackLimit()) {
|
||||
stack.stackSize = getInventoryStackLimit();
|
||||
}
|
||||
if (stack == null) {
|
||||
core.setInventorySlotContents(i, null);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in new issue
Block a user