From b627d717500dca6c2aa577abee855666da1dcde2 Mon Sep 17 00:00:00 2001 From: teknomunk Date: Sat, 28 Dec 2024 18:56:09 -0600 Subject: [PATCH] Allow curved special rail conversion without dropping as item --- mods/ENTITIES/mcl_minecarts/rails.lua | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/mods/ENTITIES/mcl_minecarts/rails.lua b/mods/ENTITIES/mcl_minecarts/rails.lua index 813d7da67..4ce80ff0d 100644 --- a/mods/ENTITIES/mcl_minecarts/rails.lua +++ b/mods/ENTITIES/mcl_minecarts/rails.lua @@ -429,6 +429,12 @@ end local CURVY_RAILS_MAP = { ["mcl_minecarts:rail"] = "mcl_minecarts:rail_v2", + ["mcl_minecarts:golden_rail"] = "mcl_minecarts:golden_rail_v2", + ["mcl_minecarts:golden_rail_on"] = "mcl_minecarts:golden_rail_v2_on", + ["mcl_minecarts:activator_rail"] = "mcl_minecarts:activator_rail_v2", + ["mcl_minecarts:activator_rail_on"] = "mcl_minecarts:activator_rail_v2_on", + ["mcl_minecarts:detector_rail"] = "mcl_minecarts:detector_rail_v2", + ["mcl_minecarts:detector_rail_on"] = "mcl_minecarts:detector_rail_v2_on", } local function convert_legacy_curvy_rails(pos, node) node.name = CURVY_RAILS_MAP[node.name] @@ -449,12 +455,6 @@ for old,new in pairs(CURVY_RAILS_MAP) do vl_legacy.register_item_conversion(old, new) end local STRAIGHT_RAILS_MAP ={ - ["mcl_minecarts:golden_rail"] = "mcl_minecarts:golden_rail_v2", - ["mcl_minecarts:golden_rail_on"] = "mcl_minecarts:golden_rail_v2_on", - ["mcl_minecarts:activator_rail"] = "mcl_minecarts:activator_rail_v2", - ["mcl_minecarts:activator_rail_on"] = "mcl_minecarts:activator_rail_v2_on", - ["mcl_minecarts:detector_rail"] = "mcl_minecarts:detector_rail_v2", - ["mcl_minecarts:detector_rail_on"] = "mcl_minecarts:detector_rail_v2_on", } local function convert_legacy_straight_rail(pos, node) node.name = STRAIGHT_RAILS_MAP[node.name]