fix ResourceId
This commit is contained in:
parent
31a8a196d3
commit
9df61617d7
|
@ -38,7 +38,7 @@ public abstract class ResourceId {
|
|||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return ((index.hashCode() * 37) + side.ordinal() * 37) + localId;
|
||||
return (((index != null ? index.hashCode() : 0) * 37) + (side != null ? side.ordinal() : 0) * 37) + localId;
|
||||
}
|
||||
|
||||
public void writeToNBT(NBTTagCompound nbt) {
|
||||
|
|
Loading…
Reference in a new issue