"important security fix" :)

master
AndrejIT 2015-02-08 21:57:14 +02:00
parent 468d4503da
commit 61473f3dc6
1 changed files with 2 additions and 2 deletions

View File

@ -68,7 +68,7 @@ minetest.register_node("city_block:cityblock", {
groups = {cracky=1,level=3},
is_ground_content = false,
light_source = LIGHT_MAX,
walkable = false,
after_place_node = function(pos, placer)
if placer and placer:is_player() then
table.insert(city_block.blocks, {pos=vector.round(pos), owner=placer:get_player_name()} )
@ -152,4 +152,4 @@ minetest.register_abm({
minetest.set_node(pos, {name="default:stone"})
end
end,
})
})