From 959356399f67630ce30335713c0e75e8429a82fa Mon Sep 17 00:00:00 2001 From: Joachim Stolberg Date: Sat, 4 Sep 2021 21:55:52 +0200 Subject: [PATCH] built on 04/09/2021 21:55:52 --- minecart/monitoring.lua | 4 +++- ta4_jetpack/init.lua | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/minecart/monitoring.lua b/minecart/monitoring.lua index bde3fcd..c25f231 100644 --- a/minecart/monitoring.lua +++ b/minecart/monitoring.lua @@ -256,11 +256,13 @@ minetest.register_chatcommand("stopcart", { local entity = minetest.luaentities[data.objID] if entity then -- cart entity running minecart.entity_to_node(player_pos, entity) + minecart.monitoring_remove_cart(owner, userID) end else local pos = data.last_pos or data.pos - local cargo, owner, userID = minecart.remove_nodecart(pos) + local cargo, _, _ = minecart.remove_nodecart(pos) minecart.add_nodecart(player_pos, data.node_name, 0, cargo, owner, userID) + minecart.monitoring_remove_cart(owner, userID) end return true, S("Cart") .. " " .. userID .. " " .. S("stopped") else diff --git a/ta4_jetpack/init.lua b/ta4_jetpack/init.lua index 0c63ee6..cc29bd0 100644 --- a/ta4_jetpack/init.lua +++ b/ta4_jetpack/init.lua @@ -231,7 +231,7 @@ minetest.register_globalstep(function(dtime) if ctrl > 0 then minetest.add_particle({ pos = pos, - vel = {x = vel.x, y = vel.y - 10, z = vel.z}, + velocity = {x = vel.x, y = vel.y - 10, z = vel.z}, expirationtime = 1, size = 5, vertical = false,