From 614ab88fa31bf38bda0b04379dd6a2b056e66fe7 Mon Sep 17 00:00:00 2001 From: Felix Siebeneicker Date: Wed, 23 Sep 2020 20:29:36 +0200 Subject: [PATCH] Pasting in Editor Places Entity on Floor (#86) --- .../src/com/interrupt/dungeoneer/editor/EditorApplication.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DelvEdit/src/com/interrupt/dungeoneer/editor/EditorApplication.java b/DelvEdit/src/com/interrupt/dungeoneer/editor/EditorApplication.java index 36bbb439..fe778679 100644 --- a/DelvEdit/src/com/interrupt/dungeoneer/editor/EditorApplication.java +++ b/DelvEdit/src/com/interrupt/dungeoneer/editor/EditorApplication.java @@ -2931,7 +2931,7 @@ public void paste() { Tile copyAt = level.getTileOrNull(cursorTileX, cursorTileY); if(copyAt != null) { - copy.z += copyAt.getFloorHeight(0.5f, 0.5f); + copy.z = copyAt.getFloorHeight(copy.x, copy.y) + 0.5f; } addEntity(copy);