Don't increase the capacity of containers with 1

They are probably tools
This commit is contained in:
2025-03-28 15:12:59 +01:00
parent 4d9024bf54
commit 311addff88

View File

@@ -1,6 +1,7 @@
- name: containers
regex: '(?-s)capacity="(?<capacity>!num)"(?:!anyslotsperrow="(?<slotsperrow>!num))?'
lua: |
if file:find("tools.xml") and capacity == 1 then return false end
capacity=capacity*2
if not slotsperrow then return true end
slotsperrow=1