mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-25 14:24:35 +00:00
prevent oredictionarificator from receiving a vertical facing. Fixes #5093
This commit is contained in:
1 parent
8d48274edb
commit
390eac1dcf
1 file changed
+11
@@ -226,6 +226,11 @@ public class TileEntityOredictionificator extends TileEntityContainerBlock imple
|
||||
filters.add(OredictionificatorFilter.readFromNBT(tagList.getCompoundTagAt(i)));
|
||||
}
|
||||
}
|
||||
|
||||
//to fix any badly placed blocks in the world
|
||||
if (facing.getAxis() == EnumFacing.Axis.Y){
|
||||
facing = EnumFacing.NORTH;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -446,6 +451,12 @@ public class TileEntityOredictionificator extends TileEntityContainerBlock imple
|
||||
|
||||
return super.getCapability(capability, side);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean canSetFacing(int i)
|
||||
{
|
||||
return i != 0 && i != 1;
|
||||
}
|
||||
|
||||
public static class OredictionificatorFilter
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user