fix buggy protector interface exit (#7)

master
Christophe Drevet 2016-12-20 16:12:09 +01:00 committed by Le Platos
parent 498225cf95
commit c0a5a21bf8
1 changed files with 6 additions and 4 deletions

View File

@ -253,11 +253,13 @@ minetest.register_on_player_receive_fields(function(player,formname,fields)
if fields.protector_page_next then
meta:set_int("page",meta:get_int("page")+1)
end
if not fields.quit then
minetest.show_formspec(
player:get_player_name(), formname,
protector.generate_formspec(meta)
)
end
end
end)
minetest.register_craftitem(protector.item, {