Fixed bug involving kitten/cat deletion

This commit is contained in:
Player Name
2023-11-05 08:20:06 +00:00
committed by Ryan
parent 978d70ad0c
commit f28076f3a4
4 changed files with 29 additions and 22 deletions
+8
View File
@@ -112,6 +112,14 @@ public abstract class Node {
return this instanceof NPC ? ((NPC) this).getId() : this instanceof Scenery ? ((Scenery) this).getId() : this instanceof Item ? ((Item) this).getId() : -1;
}
/**
* Gets the node id hash (only relevant if the node is an item).
* @return the id hash.
*/
public int getIdHash() {
return this instanceof Item ? ((Item) this).getIdHash() : -1;
}
/**
* Gets the center location.
* @return The center location.