Skip to content

Commit

Permalink
fix door registration (again?)
Browse files Browse the repository at this point in the history
  • Loading branch information
naturefreshmilk committed Dec 29, 2019
1 parent 44727fe commit fe05f9a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions depends.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
mesecons?
intllib?
default?
4 changes: 2 additions & 2 deletions init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -862,7 +862,7 @@ travelnet.on_receive_fields = function(pos, formname, fields, player)

-- may be 0.0 for some versions of MT 5 player model
local player_model_bottom = tonumber(minetest.settings:get("player_model_bottom")) or -.5;
local player_model_vec = vector.new(0, player_model_bottom, 0);
local player_model_vec = vector.n ew(0, player_model_bottom, 0);
local target_pos = travelnet.targets[ owner_name ][ station_network ][ fields.target ].pos;

local top_pos = {x=pos.x, y=pos.y+1, z=pos.z}
Expand Down Expand Up @@ -1095,7 +1095,7 @@ end
if( travelnet.elevator_enabled ) then
dofile(travelnet.path.."/elevator.lua"); -- allows up/down transfers only
end
if( travelnet.enable_doors ) then
if( travelnet.doors_enabled ) then
-- doors that open and close automaticly when the travelnet or elevator is used
dofile(travelnet.path.."/doors.lua");
end
Expand Down

0 comments on commit fe05f9a

Please sign in to comment.