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:
SmallJoker 2017-05-21 20:43:42 +02:00
parent acf697cd43
commit 61b19d77d9

@ -231,7 +231,7 @@ function cart_entity:on_step(dtime)
local acc = nil
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
vel = {x=0, y=0, z=0}
acc = false