mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-30 22:41:20 +01:00
Fix crash after entering a minecart not on rails
This commit is contained in:
parent
1054d38b4e
commit
190ce1b811
1 changed files with 1 additions and 1 deletions
|
@ -248,7 +248,7 @@ function DEFAULT_CART_DEF:on_step(dtime)
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Give achievement when player reached a distance of 1000 nodes from the start position
|
-- Give achievement when player reached a distance of 1000 nodes from the start position
|
||||||
if vector.distance(self._start_pos, pos) >= 1000 then
|
if pos and vector.distance(self._start_pos, pos) >= 1000 then
|
||||||
awards.unlock(self._driver, "mcl:onARail")
|
awards.unlock(self._driver, "mcl:onARail")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue