Removed unnecessary getFacingEnum method; super does all this stuff already and is more correct (#2502)

This commit is contained in:
Dave Smith 2021-09-17 02:28:29 -06:00 committed by GitHub
parent f91b57f250
commit 69be970d72
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -117,15 +117,6 @@ public class LapotronicSUBlockEntity extends EnergyStorageBlockEntity implements
}
}
@Override
public Direction getFacingEnum() {
Block block = world.getBlockState(pos).getBlock();
if (block instanceof LapotronicSUBlock) {
return ((LapotronicSUBlock) block).getFacing(world.getBlockState(pos));
}
return null;
}
// IContainerProvider
@Override
public BuiltScreenHandler createScreenHandler(int syncID, final PlayerEntity player) {