]> git.lizzy.rs Git - Crafter.git/commitdiff
Make meta torches dynamic
authoroilboi <47129783+oilboi@users.noreply.github.com>
Fri, 26 Jun 2020 09:31:50 +0000 (05:31 -0400)
committeroilboi <47129783+oilboi@users.noreply.github.com>
Fri, 26 Jun 2020 09:31:50 +0000 (05:31 -0400)
mods/redstone/init.lua

index 2e74c74d49ca774d1c1cf5313f72a404d2bb503a..6e98f24208b92e8440cb78b44203ea196f9a6354 100644 (file)
@@ -166,7 +166,7 @@ localredstone.injector = function(i)
        if get_meta(i):get_int("redstone_power") > 0 then
                if not r_index[i.x] then r_index[i.x] = {} end
                if not r_index[i.x][i.y] then r_index[i.x][i.y] = {} end
-               r_index[i.x][i.y][i.z] = {torch = true,power=9}
+               r_index[i.x][i.y][i.z] = {torch = true,power=get_meta(i):get_int("redstone_power")}
        end
 end