Update init.lua

this prevents pushing buttons in creative from running other mods field func
This commit is contained in:
obneq 2013-08-07 17:11:33 +02:00
parent 9df85d7752
commit 0aa1bb3a82

View file

@ -119,6 +119,7 @@ minetest.register_on_player_receive_fields(function(player, formname, fields)
end
creative_inventory.set_creative_formspec(player, start_i, start_i / (6*4) + 1)
return true
end)
if minetest.setting_getbool("creative_mode") then