From 0dfb0fce22147f67d17d599fa143ac5ce131db4f Mon Sep 17 00:00:00 2001 From: orwell96 Date: Wed, 11 Oct 2017 11:53:14 +0200 Subject: Do not crash when train_pos is nil while checking wagon entity loading --- advtrains/trainlogic.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'advtrains') diff --git a/advtrains/trainlogic.lua b/advtrains/trainlogic.lua index 483ea52..d8130e9 100644 --- a/advtrains/trainlogic.lua +++ b/advtrains/trainlogic.lua @@ -470,7 +470,7 @@ function advtrains.train_step_a(id, train, dtime) local should_check=false for _,p in ipairs(minetest.get_connected_players()) do - should_check=should_check or ((vector.distance(ori_pos, p:getpos())