mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2024-12-14 12:10:30 +00:00
Ensure the origin monitor is valid too
Blurh, still not sure if this is Correct or anything, but have no clue what's causing this. Fixes #985. Hopefully.
This commit is contained in:
parent
0e4b7a5a75
commit
1f6e0f287d
@ -95,7 +95,10 @@ class Expander
|
||||
if( !isPositive )
|
||||
{
|
||||
TileEntity otherOrigin = level.getBlockEntity( otherMonitor.toWorldPos( 0, 0 ) );
|
||||
if( otherOrigin == null || !origin.isCompatible( (TileMonitor) otherOrigin ) ) return false;
|
||||
if( !(otherOrigin instanceof TileMonitor) || !origin.isCompatible( (TileMonitor) otherOrigin ) )
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
origin = (TileMonitor) otherOrigin;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user