Set WAILA stack limit to infinity with creative upgrades in place

This commit is contained in:
Justin Aquadro committed 2016-01-31 16:20:06 -05:00
1 parent 15440384e6
commit a79fe59264
2 files changed
+7 -2

No files matched your search

@@ -93,6 +93,7 @@ storageDrawers.waila.empty=<Empty>
storageDrawers.waila.level=Upgrade Level: %s
storageDrawers.waila.drawer=#%s: %s
storageDrawers.waila.limit=Stack Limit: %s (x%s)
storageDrawers.waila.nolimit=Stack Limit: ∞
storageDrawers.waila.locked=Locked
storageDrawers.waila.void=Void
storageDrawers.waila.sorting=Sorting
@@ -96,8 +96,12 @@ public class Waila extends IntegrationModule
currenttip.add(StatCollector.translateToLocalFormatted("storageDrawers.waila.drawer", i + 1, name));
}
int limit = tile.getDrawerCapacity() * tile.getEffectiveStorageMultiplier();
currenttip.add(StatCollector.translateToLocalFormatted("storageDrawers.waila.limit", limit, tile.getEffectiveStorageMultiplier()));
if (tile.isUnlimited() || tile.isVending())
currenttip.add(StatCollector.translateToLocalFormatted("storageDrawers.waila.nolimit"));
else {
int limit = tile.getDrawerCapacity() * tile.getEffectiveStorageMultiplier();
currenttip.add(StatCollector.translateToLocalFormatted("storageDrawers.waila.limit", limit, tile.getEffectiveStorageMultiplier()));
}
String attrib = "";
if (tile.isLocked(LockAttribute.LOCK_POPULATED))