Fixed infini-block
This commit is contained in:
parent
b0f3db9328
commit
05ee5bdc83
4
init.lua
4
init.lua
@ -244,8 +244,8 @@ function minetest.node_dig(pos, oldnode, digger)
|
|||||||
end
|
end
|
||||||
local place_node = minetest.item_place_node
|
local place_node = minetest.item_place_node
|
||||||
function minetest.item_place_node(itemstack, placer, pointed_thing)
|
function minetest.item_place_node(itemstack, placer, pointed_thing)
|
||||||
place_node(itemstack, placer, pointed_thing)
|
|
||||||
specialties.changeXP(placer:get_player_name(), "builder", 1)
|
specialties.changeXP(placer:get_player_name(), "builder", 1)
|
||||||
|
return place_node(itemstack, placer, pointed_thing)
|
||||||
end
|
end
|
||||||
minetest.register_globalstep(function(dtime)
|
minetest.register_globalstep(function(dtime)
|
||||||
if time+dtime < 10 then
|
if time+dtime < 10 then
|
||||||
@ -256,4 +256,4 @@ minetest.register_globalstep(function(dtime)
|
|||||||
specialties.writeXP(player)
|
specialties.writeXP(player)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
|
Loading…
Reference in New Issue
Block a user