summaryrefslogtreecommitdiff
path: root/src/content_sao.cpp
diff options
context:
space:
mode:
author0gb.us <0gb.us@0gb.us>2013-03-28 01:24:48 -0700
committerkwolekr <kwolekr@minetest.net>2013-03-29 14:18:51 -0400
commit02cbb5810774ec0d8eb43b6cd5796a3d43878fe1 (patch)
treef0d1c3ddea7cb8101d7211545dd912684838fa2c /src/content_sao.cpp
parent5b854f95d2144710493520151aafc48a887ac1b3 (diff)
downloadminetest-02cbb5810774ec0d8eb43b6cd5796a3d43878fe1.tar.gz
minetest-02cbb5810774ec0d8eb43b6cd5796a3d43878fe1.tar.bz2
minetest-02cbb5810774ec0d8eb43b6cd5796a3d43878fe1.zip
Fix node replacement in not-quite-loaded chunks
When first entering an area, sometimes placing nodes replaces other nodes that are not buildable_to. This seems to be caused by the fact that nodes in unloaded map blocks are treated as ignore, a node that is buildable_to. This fixes that, by using get_node_or_nil() instead of the previously-used get_node(), then checking to see if the nodes were actually loaded before replacing.
Diffstat (limited to 'src/content_sao.cpp')
0 files changed, 0 insertions, 0 deletions