mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-11-26 21:03:45 +01:00
Fix crash if trading with cleric in non-v6 mapgen
parent
26838fb2d6
commit
d1fb01c2ff
@ -52,6 +52,7 @@ end
|
|||||||
local E1 = { "mcl_core:emerald", 1, 1 } -- one emerald
|
local E1 = { "mcl_core:emerald", 1, 1 } -- one emerald
|
||||||
|
|
||||||
-- Special trades for v6 only
|
-- Special trades for v6 only
|
||||||
|
-- NOTE: These symbols MUST only be added at the end of a tier
|
||||||
local TRADE_V6_RED_SANDSTONE, TRADE_V6_DARK_OAK_SAPLING, TRADE_V6_ACACIA_SAPLING, TRADE_V6_BIRCH_SAPLING
|
local TRADE_V6_RED_SANDSTONE, TRADE_V6_DARK_OAK_SAPLING, TRADE_V6_ACACIA_SAPLING, TRADE_V6_BIRCH_SAPLING
|
||||||
if minetest.get_mapgen_setting("mg_name") == "v6" then
|
if minetest.get_mapgen_setting("mg_name") == "v6" then
|
||||||
TRADE_V6_RED_SANDSTONE = { E1, { "mcl_core:redsandstone", 12, 16 } }
|
TRADE_V6_RED_SANDSTONE = { E1, { "mcl_core:redsandstone", 12, 16 } }
|
||||||
@ -322,9 +323,9 @@ local professions = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
TRADE_V6_RED_SANDSTONE,
|
|
||||||
{ E1, { "mcl_nether:glowstone", 1, 3 } },
|
{ E1, { "mcl_nether:glowstone", 1, 3 } },
|
||||||
{ { "mcl_core:emerald", 4, 7 }, { "mcl_throwing:ender_pearl", 1, 1 } },
|
{ { "mcl_core:emerald", 4, 7 }, { "mcl_throwing:ender_pearl", 1, 1 } },
|
||||||
|
TRADE_V6_RED_SANDSTONE,
|
||||||
},
|
},
|
||||||
|
|
||||||
-- TODO: Bottle 'o enchanting
|
-- TODO: Bottle 'o enchanting
|
||||||
|
Loading…
Reference in New Issue
Block a user