fix ResourceId
This commit is contained in:
parent
31a8a196d3
commit
9df61617d7
1 changed files with 1 additions and 1 deletions
|
@ -38,7 +38,7 @@ public abstract class ResourceId {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int hashCode() {
|
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) {
|
public void writeToNBT(NBTTagCompound nbt) {
|
||||||
|
|
Loading…
Reference in a new issue