Fix charging and discharging items in Energy Storage blocks.
This commit is contained in:
parent
5001331577
commit
5142f84a3e
1 changed files with 2 additions and 2 deletions
|
@ -88,12 +88,12 @@ public class EnergyStorageBlockEntity extends PowerAcceptorBlockEntity
|
|||
|
||||
@Override
|
||||
public boolean canAcceptEnergy(Direction direction) {
|
||||
return getFacing() != direction;
|
||||
return direction == null || getFacing() != direction;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean canProvideEnergy(Direction direction) {
|
||||
return getFacing() == direction;
|
||||
return direction == null || getFacing() == direction;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in a new issue