summaryrefslogtreecommitdiff
path: root/pacmine/gamestate.lua
diff options
context:
space:
mode:
Diffstat (limited to 'pacmine/gamestate.lua')
-rwxr-xr-xpacmine/gamestate.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/pacmine/gamestate.lua b/pacmine/gamestate.lua
index 9524e83..d2424b4 100755
--- a/pacmine/gamestate.lua
+++ b/pacmine/gamestate.lua
@@ -270,7 +270,7 @@ local function on_player_gamestep(player, gameid)
{x=-0.5,y=0.5,z=-0.5},
}
for _,pos in pairs(positions) do
- pos = vector.add(player_pos, pos)
+ pos = vector.round(vector.add(player_pos, pos))
local node = minetest.get_node(pos)
local nodedef = minetest.registered_nodes[node.name]