Add a check to getOrientation for redstring. Closes #2384

This commit is contained in:
Vasco Lavos committed 2017-09-30 13:25:27 +01:00
1 parent c45270431f
commit ccf7971dc6
1 file changed
+5 -1
@@ -77,7 +77,11 @@ public abstract class TileRedString extends TileMod implements ITileBound {
}
public EnumFacing getOrientation() {
return world.getBlockState(getPos()).getValue(BotaniaStateProps.FACING);
IBlockState state = world.getBlockState(getPos());
if(state.getPropertyKeys().contains(BotaniaStateProps.FACING))
return state.getValue(BotaniaStateProps.FACING);
return EnumFacing.WEST; // fallback
}
public TileEntity getTileAtBinding() {