fix ResourceId

This commit is contained in:
asiekierka 2014-12-25 14:45:07 +01:00
parent 31a8a196d3
commit 9df61617d7

View file

@ -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) {