diff options
author | orwell96 <orwell@bleipb.de> | 2016-12-31 15:16:19 +0100 |
---|---|---|
committer | orwell96 <orwell@bleipb.de> | 2016-12-31 15:16:19 +0100 |
commit | 987cd5b7f0ef86884858a107cc915f548675f2a8 (patch) | |
tree | 3db1bbcb3c730d3da9ed49d1bafb198142f9f973 /advtrains/couple.lua | |
parent | d08e202346192c50072450a3eaa3b28cad852b84 (diff) | |
download | advtrains-987cd5b7f0ef86884858a107cc915f548675f2a8.tar.gz advtrains-987cd5b7f0ef86884858a107cc915f548675f2a8.tar.bz2 advtrains-987cd5b7f0ef86884858a107cc915f548675f2a8.zip |
spawn couple on train collision
also fix empty trains hanging around for too long
Diffstat (limited to 'advtrains/couple.lua')
-rw-r--r-- | advtrains/couple.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/advtrains/couple.lua b/advtrains/couple.lua index a846c8b..675bed5 100644 --- a/advtrains/couple.lua +++ b/advtrains/couple.lua @@ -140,7 +140,7 @@ minetest.register_entity("advtrains:couple", { else tp2=advtrains.get_real_index_position(train2.path, advtrains.get_train_end_index(train2)) end - if not tp1 or not tp2 or not (vector.distance(tp1,tp2)<0.5) then + if not tp1 or not tp2 or not (vector.distance(tp1,tp2)<1.5) then self.object:remove() return else |