Fixed bug involving kitten/cat deletion
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user