From be37a649f7ea83007ee15effed0a474fb8d00f59 Mon Sep 17 00:00:00 2001 From: orwell96 Date: Sat, 29 Oct 2016 21:07:51 +0200 Subject: [PATCH] fix unloaded map chunk travelling --- advtrains.zip | Bin 1326007 -> 1326055 bytes trainlogic.lua | 11 ++++++----- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/advtrains.zip b/advtrains.zip index b1e88d57646e1fa6584b4f91b46d97eb75ea45de..38995c6edf1ddf925f44ca2fef672b894b25b6b3 100644 GIT binary patch delta 13388 zcmZ8|Q*fY-5@l@Lw(W^I@x+|io>*UOV`AG*Cbn(cwzdD=x81JBdskO=*ExM!o|TTD zmHdK0gTR8ogCK$+gP?+-gJ6PSgW!VTgAjrcgOGxdgHVD{gU}k$88Z_D5y4t_Cl1862}_0 zm;F}w3Qi6N9E3E6M5VAFyr0RR;m++V?*(*Zv@=VgKA+qXQ8jgS^)7nlPTgjg^c0E5 zbo>0h)TzJY@@ma4Y8(OCFj~zX8RL>1myYe2z-b#_GuT^_)BMrl`7nch=I@MhnmdH9 z+Y`w`Q>t=TYU|mn+}5x(Yk5b)v@AekOG73x&Bwt z#?!Vq)QJX}^&PjX4;RuSBO*RyuJ%TGJS{UBZH(SU))^V&`oD)}EsEzY?ipCo5O64V zz!0*2cMs-!nt)Jc2&DoVm~yH$kcAc!-R9lU#r}RVnCYjMWv=*m9pvYF^0`` zp(bORYq#&_Q17B3W^QiHly>HBXtW2Mz*^1o3xRpQ#4dEBLEsS1Z4V}7;?3fM5|BcV zSLo{#LCg?fCzOlYXj`G(F*+`qIk!gxS$j)5c}}HyEf%jfvuhV*X%M$1hxaxsJQ$7P zWpFZY%@GQD^J{o#0;td~bnQx^VVHDeX0Pjlai>CfhN03WMZ@y zvy2G)0#{ahqE8eP?6~Ts{V?!xg}^lSDbV6ZrD+;IlFXx2JvM4~4Vy5JA24rDMYNYs zGgRYzT}c@&(6_;VUYUND3s({SmEEAV0+;*;lU@otH3DCQSsoAPj1;xe5qt$UZ~V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Uk2d+ z{BPh{J1UTev8AJf3xl1TvAP;K5a|Cf>$E?JXt-%9JZJ>Ku4zp?XiC8SX<)o)N+36P XX&Ss}>cBN=)x2oz5H2wPgTDVCw^hrr diff --git a/trainlogic.lua b/trainlogic.lua index 0291e8f..f16e1e2 100644 --- a/trainlogic.lua +++ b/trainlogic.lua @@ -246,11 +246,12 @@ function advtrains.train_step(id, train, dtime) --check for any trainpart entities if they have been unloaded. do this only if train is near a player, to not spawn entities into unloaded areas train.check_trainpartload=(train.check_trainpartload or 0)-dtime local node_range=(math.max((minetest.setting_get("active_block_range") or 0),1)*16) - if train.check_trainpartload<=0 and posfront and posback then - --print(minetest.pos_to_string(posfront)) + if train.check_trainpartload<=0 then + local ori_pos=advtrains.get_real_index_position(path, train.index) --not much to calculate + local should_check=false for _,p in ipairs(minetest.get_connected_players()) do - should_check=should_check or ((vector.distance(posfront, p:getpos())