From 70954a669ee0a0e02324baf4c940745c473c63ba Mon Sep 17 00:00:00 2001 From: LeMagnesium Date: Mon, 27 Jul 2015 20:01:54 +0200 Subject: [PATCH] Fixed current class determination for reserved items - Fixed output variables for pairs in pclasses' api.lua --- mods/pclasses/api.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mods/pclasses/api.lua b/mods/pclasses/api.lua index a7ace6c2..9b6889a6 100644 --- a/mods/pclasses/api.lua +++ b/mods/pclasses/api.lua @@ -126,7 +126,7 @@ pclasses.api.reserve_item("warrior", "moreores:sword_mithril") pclasses.api.reserve_item("warrior", "default:dungeon_master_s_blood_sword") pclasses.api.reserve_item("hunter", "throwing:bow_minotaur_horn") -pclasses.api.reserve_item("hunter", "throwing:bow_minotaur_born_improved") +pclasses.api.reserve_item("hunter", "throwing:bow_minotaur_horn_improved") minetest.register_globalstep(function(dtime) @@ -137,7 +137,7 @@ minetest.register_globalstep(function(dtime) local stack = inv:get_stack("main", i) if pclasses.datas.reserved_items[stack:get_name()] then local drop_stack = true - for class in pairs(pclasses.datas.reserved_items) do + for _, class in pairs(pclasses.datas.reserved_items) do if pclasses.api.get_player_class(name) == class then drop_stack = false end