From 6743a4784d24cdb3580f1dbb1eda88d6fba520df Mon Sep 17 00:00:00 2001 From: unknown <24964441+wsor4035@users.noreply.github.com> Date: Sun, 10 Oct 2021 14:01:11 -0400 Subject: [PATCH] small fixes --- mods/fl_mapgen/biome_sky.lua | 7 ++++--- mods/fl_trains/engine.lua | 5 ++++- mods/fl_trains/track.lua | 2 +- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/mods/fl_mapgen/biome_sky.lua b/mods/fl_mapgen/biome_sky.lua index e9b12a6..4deece6 100644 --- a/mods/fl_mapgen/biome_sky.lua +++ b/mods/fl_mapgen/biome_sky.lua @@ -69,9 +69,10 @@ local function logic() local bdata = minetest.get_biome_data(player:get_pos()) local bdef = minetest.registered_biomes[minetest.get_biome_name(bdata.biome)] or {} - if bs.players[pname] and bs.players[pname].id == bdata.biome then break end - - if bdef._sky_data then + if bs.players[pname] and bs.players[pname].id == bdata.biome then + --do nothing + bs.players[pname].id = bdata.biome + elseif bdef._sky_data then for k, _ in pairs(bs.defaults) do if bdef._sky_data[k] == nil then bdef._sky_data[k] = {} end end diff --git a/mods/fl_trains/engine.lua b/mods/fl_trains/engine.lua index 8a75ec5..227984b 100644 --- a/mods/fl_trains/engine.lua +++ b/mods/fl_trains/engine.lua @@ -59,6 +59,9 @@ minetest.register_entity("fl_trains:train_engine", { if not player then return end if player:get_player_control().up and speed_check(vel, 5) then self.object:add_velocity(vector.multiply(dir, 0.2)) + elseif player:get_player_control().down and speed_check(vel, 5) then + --track always looks engine forwards, fix me + self.object:add_velocity(vector.multiply(dir, -0.2)) end end, @@ -104,5 +107,5 @@ minetest.register_craftitem("fl_trains:train_engine", { end end end, - --groups = {not_in_creative_inventory = 1} + groups = {not_in_creative_inventory = 1} }) \ No newline at end of file diff --git a/mods/fl_trains/track.lua b/mods/fl_trains/track.lua index 3caa8b3..b4fcfb7 100644 --- a/mods/fl_trains/track.lua +++ b/mods/fl_trains/track.lua @@ -5,7 +5,7 @@ minetest.register_node("fl_trains:straight_track", { drawtype = "mesh", mesh = "farlands_straight.obj", tiles = {"farlands_rail.png", "farlands_ties.png"}, - groups = {oddly_breakable_by_hand = 3},--, not_in_creative_inventory = 1}, + groups = {oddly_breakable_by_hand = 3, not_in_creative_inventory = 1}, selection_box = { type = "fixed", fixed = {-0.5,-0.5,-0.5,0.5,-0.475,0.5},