fixed error
parent
9e2ee86496
commit
f0709dfbe5
10
init.lua
10
init.lua
|
@ -2,6 +2,11 @@ chemistry={}
|
|||
chemistry.reaction=0
|
||||
chemistry.reactions={}
|
||||
|
||||
function chemistry:register_reaction(reaction)
|
||||
chemistry.reaction=chemistry.reaction+1
|
||||
chemistry.reactions[chemistry.reaction]=reaction
|
||||
end
|
||||
|
||||
dofile(minetest.get_modpath("chemistry").."/crafts.lua")
|
||||
|
||||
local groups = {
|
||||
|
@ -269,11 +274,6 @@ minetest.register_node("chemistry:and", {
|
|||
groups = {snappy=2,choppy=2,oddly_breakable_by_hand=3,flammable=3,chemistry=1},
|
||||
})
|
||||
|
||||
function chemistry:register_reaction(reaction)
|
||||
chemistry.reaction=chemistry.reaction+1
|
||||
chemistry.reactions[chemistry.reaction]=reaction
|
||||
end
|
||||
|
||||
function deepcopy(t)
|
||||
if type(t) ~= 'table' then return t end
|
||||
local mt = getmetatable(t)
|
||||
|
|
Loading…
Reference in New Issue