mirror of
https://github.com/SmallJoker/boost_cart.git
synced 2024-12-25 10:20:19 +01:00
Start-stop rail: Do not stop when punching
Reported/requested in: https://forum.minetest.net/viewtopic.php?p=270534#p270534
This commit is contained in:
parent
acf697cd43
commit
61b19d77d9
@ -231,7 +231,7 @@ function cart_entity:on_step(dtime)
|
|||||||
local acc = nil
|
local acc = nil
|
||||||
|
|
||||||
local acc_meta = minetest.get_meta(pos):get_string("cart_acceleration")
|
local acc_meta = minetest.get_meta(pos):get_string("cart_acceleration")
|
||||||
if acc_meta == "halt" then
|
if acc_meta == "halt" and not self.punched then
|
||||||
-- Stop rail
|
-- Stop rail
|
||||||
vel = {x=0, y=0, z=0}
|
vel = {x=0, y=0, z=0}
|
||||||
acc = false
|
acc = false
|
||||||
|
Loading…
Reference in New Issue
Block a user