Merge pull request #11 from Awkanimus/main
Tome crash fix and fix acidic_compound
This commit is contained in:
commit
671546f103
@ -193,7 +193,7 @@ minetest.register_craftitem("elepower_dynamics:acidic_compound", {
|
|||||||
local pos = pointed_thing.under
|
local pos = pointed_thing.under
|
||||||
local node = minetest.get_node(pos)
|
local node = minetest.get_node(pos)
|
||||||
|
|
||||||
if node.name ~= epi.water_source then
|
if node.name ~= epr.water_source then
|
||||||
return itemstack
|
return itemstack
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -238,7 +238,7 @@ function eletome.gen_craft_grid(recipe,y_off,no_items)
|
|||||||
-- handle when recipe includes groups
|
-- handle when recipe includes groups
|
||||||
if string.find(recipe.items[x_cnt],"group") then
|
if string.find(recipe.items[x_cnt],"group") then
|
||||||
local grp_name = string.gsub(recipe.items[x_cnt],"group:","")
|
local grp_name = string.gsub(recipe.items[x_cnt],"group:","")
|
||||||
local node_name
|
local node_name = "UNKNOWN"
|
||||||
for name,def in pairs(minetest.registered_nodes) do
|
for name,def in pairs(minetest.registered_nodes) do
|
||||||
if def.groups[grp_name] and not def.groups["wall"] then
|
if def.groups[grp_name] and not def.groups["wall"] then
|
||||||
node_name = name
|
node_name = name
|
||||||
|
Loading…
Reference in New Issue
Block a user