diff options
Diffstat (limited to 'utils/game.js')
-rw-r--r-- | utils/game.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/utils/game.js b/utils/game.js index 22bfa13..9cbeb9b 100644 --- a/utils/game.js +++ b/utils/game.js @@ -484,6 +484,8 @@ function performPlaceTileCommand(command, player, commandList) { } } +// "i hope we same place again very now" - derek + function performPlaceDoorCommand(command, player, commandList) { if (!isDirection(command.direction)) return; @@ -492,6 +494,7 @@ function performPlaceDoorCommand(command, player, commandList) { const curt = chunkUtils.getTile(pos); if (!player.canPlaceOnTile(curt)) return; if (!doorUtils.removeDoorFromInventory(player.inventory, d)) return; + player.inventory.hasChanged = true; doorUtils.placeDoor(d, pos); addSetInventoryCommand(player.inventory, commandList); } |