fixed error

master
Bas 2013-02-20 17:04:29 +01:00
parent 9e2ee86496
commit f0709dfbe5
1 changed files with 5 additions and 5 deletions

View File

@ -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)