From 61b19d77d9cc1d4c9afd4745037c6790c733d00e Mon Sep 17 00:00:00 2001 From: SmallJoker Date: Sun, 21 May 2017 20:43:42 +0200 Subject: [PATCH] Start-stop rail: Do not stop when punching Reported/requested in: https://forum.minetest.net/viewtopic.php?p=270534#p270534 --- cart_entity.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cart_entity.lua b/cart_entity.lua index 1633758..4147c09 100644 --- a/cart_entity.lua +++ b/cart_entity.lua @@ -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