]> git.lizzy.rs Git - Crafter.git/commitdiff
Make redstone not index if already in index table
authoroilboi <47129783+oilboi@users.noreply.github.com>
Fri, 26 Jun 2020 13:30:57 +0000 (09:30 -0400)
committeroilboi <47129783+oilboi@users.noreply.github.com>
Fri, 26 Jun 2020 13:30:57 +0000 (09:30 -0400)
mods/redstone/init.lua

index 732eeeb3cf7197ca596f8807d37789107401960c..09eb70ac8eefb27ae34c0a1e18ec19e1f1582aa9 100644 (file)
@@ -195,6 +195,9 @@ end
 
 
 function redstone.collect_info(pos)
+       if r_index[pos.x] and r_index[pos.x][pos.y] and r_index[pos.x][pos.y][pos.z] then
+               return
+       end
        localredstone.injector(pos)
        localredstone.collector(pos)
 end