Skip to content

Commit 8c91c2f

Browse files
committed
Fix for issue raised in bug #241
Fix to allow processing for a single filltype, up to the maximum allowed for that filltype. Will consider options to exceed limit when required.
1 parent d01d547 commit 8c91c2f

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

UniversalAutoload.lua

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2564,13 +2564,15 @@ function UniversalAutoload:onUpdate(dt, isActiveForInput, isActiveForInputIgnore
25642564
if totalCapacity > 0 then
25652565
local percentage = fillLevel / totalCapacity
25662566
if percentage > avgPercentage then
2567+
--print("BLOCK CAPACITY")
25672568
return false
25682569
end
25692570
end
25702571

2571-
if totalFillLevel > 0 then
2572+
if totalFillLevel > 0 and fillLevel~=totalFillLevel then
25722573
local percentage = fillLevel / totalFillLevel
25732574
if percentage > 0.99*maxPercentage then
2575+
--print("BLOCK PERCENTAGE")
25742576
return false
25752577
end
25762578
end

modDesc.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<modDesc descVersion="80">
33

44
<author>loki_79</author>
5-
<version>1.6.0.0</version>
5+
<version>1.6.0.1</version>
66

77
<title>
88
<en>Universal Autoload</en>

0 commit comments

Comments
 (0)