mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-12-25 10:52:25 +01:00
Fix creative node placement
This commit is contained in:
parent
149cb5d17c
commit
2eabeb119a
@ -725,6 +725,9 @@ minetest.register_on_player_receive_fields(function(player, formname, fields)
|
||||
mcl_inventory.set_creative_formspec(player)
|
||||
end)
|
||||
|
||||
minetest.register_on_placenode(function(pos, newnode, placer, oldnode, itemstack)
|
||||
return placer and placer:is_player() and minetest.is_creative_enabled(placer:get_player_name())
|
||||
end)
|
||||
|
||||
if minetest.is_creative_enabled("") then
|
||||
minetest.register_on_placenode(function(pos, newnode, placer, oldnode, itemstack)
|
||||
|
Loading…
Reference in New Issue
Block a user