forked from mtcontrib/pipeworks
Compare commits
2 Commits
4dd30df37a
...
2021-01-30
Author | SHA1 | Date | |
---|---|---|---|
8322f256c5 | |||
ba7eb19317 |
@ -67,11 +67,8 @@ local function run_autocrafter(pos, elapsed)
|
|||||||
local inventory = meta:get_inventory()
|
local inventory = meta:get_inventory()
|
||||||
local craft = get_craft(pos, inventory)
|
local craft = get_craft(pos, inventory)
|
||||||
local output_item = craft.output.item
|
local output_item = craft.output.item
|
||||||
-- NALC: existence de limitgroup ?
|
|
||||||
local limitcraft = minetest.get_item_group(output_item:get_name(), "limitcraft") or 0
|
|
||||||
-- only use crafts that have an actual result
|
-- only use crafts that have an actual result
|
||||||
-- NALC: ou si l'item n'est pas dans le group limitcraft
|
if output_item:is_empty() then
|
||||||
if output_item:is_empty() or limitcraft > 0 then
|
|
||||||
meta:set_string("infotext", S("unconfigured Autocrafter: unknown recipe"))
|
meta:set_string("infotext", S("unconfigured Autocrafter: unknown recipe"))
|
||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
|
@ -340,6 +340,8 @@ local move_entities_globalstep_part2 = function(dtime)
|
|||||||
entity._velocity = master_entity:get_velocity()
|
entity._velocity = master_entity:get_velocity()
|
||||||
entity._acceleration = master_entity:get_acceleration()
|
entity._acceleration = master_entity:get_acceleration()
|
||||||
else
|
else
|
||||||
|
entity._velocity = entity._velocity or vector.new(0,0,0)
|
||||||
|
entity._acceleration = entity._acceleration or vector.new(0,0,0)
|
||||||
entity._pos = vector.add(vector.add(
|
entity._pos = vector.add(vector.add(
|
||||||
entity._pos,
|
entity._pos,
|
||||||
vector.multiply(entity._velocity, dtime)),
|
vector.multiply(entity._velocity, dtime)),
|
||||||
|
Reference in New Issue
Block a user