Skip to content

Commit

Permalink
fix: Fix database inventory equals method
Browse files Browse the repository at this point in the history
  • Loading branch information
Philip Urban committed Dec 21, 2020
1 parent 8dfcf78 commit 33abfda
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,12 +83,12 @@ public boolean equals(Object obj) {
TDatabaseInventory other = (TDatabaseInventory)obj;

if(holderId != other.getHolderId()) return false;
if(serializedInventory != other.getSerializedInventory()) return false;
if(saturation != other.getSaturation()) return false;
if(health != other.getHealth()) return false;
if(!serializedInventory.equals(other.getSerializedInventory())) return false;
if(!saturation.equals(other.getSaturation())) return false;
if(!health.equals(other.getHealth())) return false;
if(level != other.getLevel()) return false;
if(exp != other.getExp()) return false;
if(world != other.getWorld()) return false;
if(!exp.equals(other.getExp())) return false;
if(!world.equals(other.getWorld())) return false;

return true;
}
Expand Down

0 comments on commit 33abfda

Please sign in to comment.