small fixes
This commit is contained in:
parent
41af49583c
commit
6743a4784d
@ -69,9 +69,10 @@ local function logic()
|
|||||||
local bdata = minetest.get_biome_data(player:get_pos())
|
local bdata = minetest.get_biome_data(player:get_pos())
|
||||||
local bdef = minetest.registered_biomes[minetest.get_biome_name(bdata.biome)] or {}
|
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 bs.players[pname] and bs.players[pname].id == bdata.biome then
|
||||||
|
--do nothing
|
||||||
if bdef._sky_data then
|
bs.players[pname].id = bdata.biome
|
||||||
|
elseif bdef._sky_data then
|
||||||
for k, _ in pairs(bs.defaults) do
|
for k, _ in pairs(bs.defaults) do
|
||||||
if bdef._sky_data[k] == nil then bdef._sky_data[k] = {} end
|
if bdef._sky_data[k] == nil then bdef._sky_data[k] = {} end
|
||||||
end
|
end
|
||||||
|
@ -59,6 +59,9 @@ minetest.register_entity("fl_trains:train_engine", {
|
|||||||
if not player then return end
|
if not player then return end
|
||||||
if player:get_player_control().up and speed_check(vel, 5) then
|
if player:get_player_control().up and speed_check(vel, 5) then
|
||||||
self.object:add_velocity(vector.multiply(dir, 0.2))
|
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
|
||||||
|
|
||||||
end,
|
end,
|
||||||
@ -104,5 +107,5 @@ minetest.register_craftitem("fl_trains:train_engine", {
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
--groups = {not_in_creative_inventory = 1}
|
groups = {not_in_creative_inventory = 1}
|
||||||
})
|
})
|
@ -5,7 +5,7 @@ minetest.register_node("fl_trains:straight_track", {
|
|||||||
drawtype = "mesh",
|
drawtype = "mesh",
|
||||||
mesh = "farlands_straight.obj",
|
mesh = "farlands_straight.obj",
|
||||||
tiles = {"farlands_rail.png", "farlands_ties.png"},
|
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 = {
|
selection_box = {
|
||||||
type = "fixed",
|
type = "fixed",
|
||||||
fixed = {-0.5,-0.5,-0.5,0.5,-0.475,0.5},
|
fixed = {-0.5,-0.5,-0.5,0.5,-0.475,0.5},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user