From 6662139380ec31ecb588016e59fa9568631d66bd Mon Sep 17 00:00:00 2001 From: ANAND Date: Thu, 7 Nov 2019 21:05:44 +0530 Subject: [PATCH] Map maker: Simplify storage of barrier_rot config value --- mods/ctf/ctf_map/map_maker.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mods/ctf/ctf_map/map_maker.lua b/mods/ctf/ctf_map/map_maker.lua index fb170c8..5a8fc40 100644 --- a/mods/ctf/ctf_map/map_maker.lua +++ b/mods/ctf/ctf_map/map_maker.lua @@ -306,7 +306,7 @@ minetest.register_on_player_receive_fields(function(player, formname, fields) end if fields.barrier_rot and fields.barrier_rot ~= "" then - config.barrier_rot = fields.barrier_rot == "X=0" and 0 or 1 + config.barrier_rot = fields.barrier_rot == "X=0" and "x" or "z" storage:set_int("config.barrier_rot", config.barrier_rot) end @@ -389,7 +389,7 @@ minetest.register_on_player_receive_fields(function(player, formname, fields) if config.mapinitial ~= "" then meta:set("initial_stuff", config.mapinitial) end - meta:set("rotation", config.barrier_rot == 0 and "x" or "z") + meta:set("rotation", config.barrier_rot) meta:set("r", config.center.r) meta:set("h", config.center.h)