Don't cook containers of capacity 1
They are probably tools and shit
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
- name: containers
|
- name: containers
|
||||||
regex: '(?-s)capacity="(?<capacity>!num)"(?:!anyslotsperrow="(?<slotsperrow>!num))?'
|
regex: '(?-s)capacity="(?<capacity>!num)"(?:!anyslotsperrow="(?<slotsperrow>!num))?'
|
||||||
lua: |
|
lua: |
|
||||||
if file:find("tools.xml") and capacity == 1 then return false end
|
if capacity == 1 then return false end
|
||||||
capacity=capacity*2
|
capacity=capacity*2
|
||||||
if not slotsperrow then return true end
|
if not slotsperrow then return true end
|
||||||
slotsperrow=1
|
slotsperrow=1
|
||||||
|
Reference in New Issue
Block a user