修复充电站wrapper问题
This commit is contained in:
parent
8c286596eb
commit
f7babbaaf6
1 changed files with 2 additions and 2 deletions
|
@ -58,7 +58,7 @@ public class ChargingStationBlockEntity extends BlockEntity implements WorldlyCo
|
|||
protected NonNullList<ItemStack> items = NonNullList.withSize(2, ItemStack.EMPTY);
|
||||
|
||||
private LazyOptional<EnergyStorage> energyHandler;
|
||||
private LazyOptional<?>[] itemHandlers = SidedInvWrapper.create(this, Direction.NORTH, Direction.DOWN, Direction.NORTH);
|
||||
private LazyOptional<?>[] itemHandlers = SidedInvWrapper.create(this, Direction.UP, Direction.DOWN, Direction.NORTH);
|
||||
|
||||
public int fuelTick = 0;
|
||||
public int maxFuelTick = DEFAULT_FUEL_TIME;
|
||||
|
@ -331,7 +331,7 @@ public class ChargingStationBlockEntity extends BlockEntity implements WorldlyCo
|
|||
@Override
|
||||
public void reviveCaps() {
|
||||
super.reviveCaps();
|
||||
this.itemHandlers = SidedInvWrapper.create(this, Direction.NORTH, Direction.DOWN, Direction.NORTH);
|
||||
this.itemHandlers = SidedInvWrapper.create(this, Direction.UP, Direction.DOWN, Direction.NORTH);
|
||||
this.energyHandler = LazyOptional.of(() -> new EnergyStorage(MAX_ENERGY));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue