Skip to content

Commit

Permalink
forgor equals
Browse files Browse the repository at this point in the history
  • Loading branch information
Atakku committed Jun 26, 2024
1 parent 18d3db5 commit 9641fd0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ org.gradle.parallel=true
mod_id=nsmp-spawner
mod_name=nsmp-spawner
mod_group=rs.neko.smp
mod_version=0.1.1
mod_version=0.1.2

# https://fabricmc.net/develop/
minecraft_version=1.20.1
Expand Down
9 changes: 9 additions & 0 deletions java/server/rs/neko/smp/spawner/SpawnData.java
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,13 @@ public JsonElement serialize(SpawnData self, Type t, JsonSerializationContext ct
return json;
}
}

@Override
public boolean equals(Object object) {
if (object instanceof SpawnData other) {
return this.spawnX == other.spawnX && this.spawnZ == other.spawnZ;
}
return false;
}

}

0 comments on commit 9641fd0

Please sign in to comment.