Skip to content

Commit

Permalink
Pasting in Editor Places Entity on Floor (#86)
Browse files Browse the repository at this point in the history
  • Loading branch information
Felix Siebeneicker authored Sep 23, 2020
1 parent bd09880 commit 614ab88
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 614ab88

Please sign in to comment.