From 7fb0f73779845949e5aa2bc00edeb3f31cae1807 Mon Sep 17 00:00:00 2001 From: Ilya Zhuravlev Date: Thu, 25 Apr 2013 00:05:42 +0400 Subject: [PATCH] setmetatable for groups was not a very good idea --- mods/instruments/buckets.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mods/instruments/buckets.lua b/mods/instruments/buckets.lua index 7aa5297..c7b1851 100644 --- a/mods/instruments/buckets.lua +++ b/mods/instruments/buckets.lua @@ -86,7 +86,9 @@ function realtest.register_liquid(name, LiquidDef) local empty_name = bucket_name(name) local groups = {["bucket_with_"..LiquidDef.name]=1} if LiquidDef.bucket_groups then - setmetatable(groups, {__index = LiquidDef.bucket_groups}) + for k, v in pairs(LiquidDef.bucket_groups) do + groups[k] = v + end end local stack = 1 if LiquidDef.bucket_stack then