forked from MTSR/techage_modpack
built on 04/09/2021 21:55:52
This commit is contained in:
parent
91cc445eb3
commit
959356399f
@ -256,11 +256,13 @@ minetest.register_chatcommand("stopcart", {
|
|||||||
local entity = minetest.luaentities[data.objID]
|
local entity = minetest.luaentities[data.objID]
|
||||||
if entity then -- cart entity running
|
if entity then -- cart entity running
|
||||||
minecart.entity_to_node(player_pos, entity)
|
minecart.entity_to_node(player_pos, entity)
|
||||||
|
minecart.monitoring_remove_cart(owner, userID)
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
local pos = data.last_pos or data.pos
|
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.add_nodecart(player_pos, data.node_name, 0, cargo, owner, userID)
|
||||||
|
minecart.monitoring_remove_cart(owner, userID)
|
||||||
end
|
end
|
||||||
return true, S("Cart") .. " " .. userID .. " " .. S("stopped")
|
return true, S("Cart") .. " " .. userID .. " " .. S("stopped")
|
||||||
else
|
else
|
||||||
|
@ -231,7 +231,7 @@ minetest.register_globalstep(function(dtime)
|
|||||||
if ctrl > 0 then
|
if ctrl > 0 then
|
||||||
minetest.add_particle({
|
minetest.add_particle({
|
||||||
pos = pos,
|
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,
|
expirationtime = 1,
|
||||||
size = 5,
|
size = 5,
|
||||||
vertical = false,
|
vertical = false,
|
||||||
|
Loading…
Reference in New Issue
Block a user