aboutsummaryrefslogtreecommitdiff
path: root/advtrains/couple.lua
diff options
context:
space:
mode:
authororwell96 <orwell@bleipb.de>2016-12-31 15:16:19 +0100
committerorwell96 <orwell@bleipb.de>2016-12-31 15:16:19 +0100
commit987cd5b7f0ef86884858a107cc915f548675f2a8 (patch)
tree3db1bbcb3c730d3da9ed49d1bafb198142f9f973 /advtrains/couple.lua
parentd08e202346192c50072450a3eaa3b28cad852b84 (diff)
downloadadvtrains-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.lua2
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