Fixed a rare ComputerCraft NPE
This commit is contained in:
parent
c0ffd6cd35
commit
67891a1218
1 changed files with 3 additions and 2 deletions
|
@ -601,8 +601,9 @@ public abstract class TileEntityAbstractInterfaced extends TileEntityAbstractBas
|
|||
|
||||
@Override
|
||||
@Optional.Method(modid = "computercraft")
|
||||
public boolean equals(final IPeripheral other) {
|
||||
return other.hashCode() == hashCode();
|
||||
public boolean equals(@Nullable final IPeripheral other) {
|
||||
return other != null
|
||||
&& other.hashCode() == hashCode();
|
||||
}
|
||||
|
||||
// Computer abstraction methods
|
||||
|
|
Loading…
Reference in a new issue