Skip to content

Commit

Permalink
fix: battery box and charging bench contents not getting saved
Browse files Browse the repository at this point in the history
  • Loading branch information
MrTJP committed Jul 5, 2023
1 parent be94b67 commit 8396689
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import codechicken.lib.data.MCDataOutput;
import codechicken.lib.util.ServerUtils;
import codechicken.lib.vec.Vector3;
import mrtjp.projectred.expansion.ProjectRedExpansion;
import mrtjp.projectred.expansion.block.BatteryBoxBlock;
import mrtjp.projectred.expansion.init.ExpansionReferences;
import mrtjp.projectred.expansion.inventory.container.BatteryBoxContainer;
Expand Down Expand Up @@ -43,6 +44,7 @@ public class BatteryBoxTile extends LowLoadPoweredTile {

public BatteryBoxTile(BlockPos pos, BlockState state) {
super(ExpansionReferences.BATTERY_BOX_TILE, pos, state);
inventory.addListener(c -> setChanged());
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ public class ChargingBenchTile extends LowLoadPoweredTile {

public ChargingBenchTile(BlockPos pos, BlockState state) {
super(ExpansionReferences.CHARGING_BENCH_TILE, pos, state);
inventory.addListener(c -> setChanged());
}

@Override
Expand Down

0 comments on commit 8396689

Please sign in to comment.