From 2bfad4061d37036e691c6446ed026ca7b1219a09 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Mon, 9 Jan 2017 18:54:58 +0100 Subject: [PATCH] Fix creative being stuck after page 3 --- mods/craftingpack/crafting/creative.lua | 3 --- 1 file changed, 3 deletions(-) diff --git a/mods/craftingpack/crafting/creative.lua b/mods/craftingpack/crafting/creative.lua index 8f2a6e2831..acc34490a0 100644 --- a/mods/craftingpack/crafting/creative.lua +++ b/mods/craftingpack/crafting/creative.lua @@ -278,7 +278,6 @@ minetest.register_on_player_receive_fields(function(player, formname, fields) local size = string.len(formspec) local marker = string.sub(formspec,size-2) marker = string.sub(marker,1) - local start_i if marker ~= nil and marker == "p" then local page = string.sub(formspec,size-1) --minetest.chat_send_all(page) @@ -287,11 +286,9 @@ minetest.register_on_player_receive_fields(function(player, formname, fields) start_i = tonumber(start_i) or 0 if fields.creative_prev then start_i = start_i - 9*5 - page = tmp_page end if fields.creative_next then start_i = start_i + 9*5 - page = tmp_page end if start_i < 0 then start_i = start_i + 9*5