mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-17 10:55:17 +00:00
Add a check to getOrientation for redstring. Closes #2384
This commit is contained in:
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() {
|
||||
|
||||
Reference in new issue
Block a user