Fix #1860
This commit is contained in:
parent
371c1fe21b
commit
4bbcf9e282
1 changed files with 3 additions and 0 deletions
|
@ -122,6 +122,9 @@ public class TransformerBlockEntity extends PowerAcceptorBlockEntity
|
|||
// TileMachineBase
|
||||
@Override
|
||||
public Direction getFacingEnum() {
|
||||
if(world == null){
|
||||
return null;
|
||||
}
|
||||
Block block = world.getBlockState(pos).getBlock();
|
||||
if (block instanceof BlockTransformer) {
|
||||
return ((BlockTransformer) block).getFacing(world.getBlockState(pos));
|
||||
|
|
Loading…
Add table
Reference in a new issue