mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-22 04:52:25 +00:00
ensure cached tile data in transmitter is correct
This commit is contained in:
1 parent
9b15e379b9
commit
30dbcfc646
1 file changed
+2
-2
@@ -74,14 +74,14 @@ public class TransmitterImpl<A, N extends DynamicNetwork<A,N>> extends Transmitt
|
||||
@Override
|
||||
public boolean isValid()
|
||||
{
|
||||
TileEntity cont = getTileEntity();
|
||||
TileEntityTransmitter cont = getTileEntity();
|
||||
|
||||
if(cont == null)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
return !cont.isInvalid() && coord().exists(world());
|
||||
return !cont.isInvalid() && coord().exists(world()) && coord().getTileEntity(world()) == cont && cont.getTransmitter() == this;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in new issue
Block a user