From 787769cb928f5ca333d401067260c3084fa7b7c3 Mon Sep 17 00:00:00 2001 From: Brandon Date: Fri, 17 Jul 2020 17:05:40 -0400 Subject: [PATCH] Fix brewing thick potions and splash water potions --- mods/ITEMS/mcl_potions/init.lua | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/mods/ITEMS/mcl_potions/init.lua b/mods/ITEMS/mcl_potions/init.lua index 42f53b65bc..ff45c89bf8 100644 --- a/mods/ITEMS/mcl_potions/init.lua +++ b/mods/ITEMS/mcl_potions/init.lua @@ -303,7 +303,9 @@ local water_table = { ["mesecons:wire_00000000_off"] = "mcl_potions:mundane", ["mcl_mobitems:ghast_tear"] = "mcl_potions:mundane", ["mcl_mobitems:spider_eye"] = "mcl_potions:mundane", - ["mcl_mobitems:rabbit_foot"] = "mcl_potions:mundane" + ["mcl_mobitems:rabbit_foot"] = "mcl_potions:mundane", + ["mcl_nether:glowstone_dust"] = "mcl_potions:thick", + ["mcl_mobitems:gunpowder"] = "mcl_potions:water_splash" } local awkward_table = { @@ -327,7 +329,8 @@ local output_table = { local enhancement_table = {} local extension_table = {} -local potions = {"awkward", "mundane", "thick"} +local potions = {} + for i, potion in ipairs({"healing","harming","swiftness","slowness", "leaping","poison","regeneration","invisibility","fire_resistance", -- "weakness","strength", @@ -349,6 +352,10 @@ for i, potion in ipairs({"healing","harming","swiftness","slowness", end +for i, potion in ipairs({"awkward", "mundane", "thick", "water", "river_water"}) do + table.insert(potions, potion) +end + local inversion_table = { ["mcl_potions:healing"] = "mcl_potions:harming", @@ -382,11 +389,6 @@ for i, potion in ipairs(potions) do lingering_table["mcl_potions:"..potion.."_splash"] = "mcl_potions:"..potion.."_lingering" end -for i, potion in ipairs({"awkward", "mundane", "thick", "water", "river_water"}) do - splash_table["mcl_potions:"..potion] = "mcl_potions:"..potion.."_splash" - lingering_table["mcl_potions:"..potion.."_splash"] = "mcl_potions:"..potion.."_lingering" -end - local mod_table = { ["mesecons:wire_00000000_off"] = extension_table,