fix chaos shard dupes

This commit is contained in:
StaffiX committed 2025-03-05 23:19:19 +01:00
1 parent 6a9adc80d7
commit d27394af29
2 files changed
+5 -4

No files matched your search

@@ -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
@@ -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