diff options
author | Gabriel Pérez-Cerezo <gabriel@gpcf.eu> | 2016-10-24 09:56:43 +0200 |
---|---|---|
committer | Gabriel Pérez-Cerezo <gabriel@gpcf.eu> | 2016-10-24 09:56:43 +0200 |
commit | 4ac603ef6fc7b2c80b9bea482142f6f6294b485c (patch) | |
tree | 699b59ab7f3d065dc322fc8f759e9215f1b84052 | |
parent | 6ebe3b99fe7b1c1eb199b5cee0de879fcdf8ee42 (diff) |
Don't copy and paste without double-checking!
-rw-r--r-- | init.lua | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -947,8 +947,8 @@ if apartment_give_player then local meta = minetest.get_meta( v.pos ); local node = minetest.get_node( v.pos ); if node.name == "ignore" then -- deal with unloaded nodes. - minetest.get_voxel_manip():read_from_map(pos, pos) - node = minetest.get_node(pos) + minetest.get_voxel_manip():read_from_map(v.pos, v.pos) + node = minetest.get_node(v.pos) end if (node.name == 'apartment:apartment_free' and apartment.rent( v.pos, player:get_player_name(), nil, player )) then player:moveto( v.pos, false); |