merging dropped items when they tightly overlap

This commit is contained in:
minjaesong
2022-01-13 11:14:21 +09:00
parent 1060d96364
commit f1d8850196
4 changed files with 16 additions and 6 deletions

View File

@@ -1726,7 +1726,7 @@ open class ActorWithBody : Actor {
throw Error("Hitbox dimension was not set. (don't modify hitbox directly -- use 'setHitboxDimension()')")
// warnings
if (sprite == null && isVisible)
if (sprite == null && isVisible && this.javaClass.simpleName != "DroppedItem")
printdbg(this, "Caution: actor ${this.javaClass.simpleName} is visible but the sprite was not set.\n" +
"Actor localhash: ${this.localHashStr}")
else if (sprite != null && !isVisible)