From 56e18366f17c44883d78afeb37515ecbe75aaf3d Mon Sep 17 00:00:00 2001 From: Ruben Taelman Date: Tue, 30 Sep 2014 18:01:42 +0200 Subject: [PATCH] Alter Dark Tank sizes. Max creative tab size: 4096 buckets. Max tank size by crafting: 65536 buckets. --- src/main/java/evilcraft/block/DarkTank.java | 2 +- src/main/java/evilcraft/block/DarkTankConfig.java | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/main/java/evilcraft/block/DarkTank.java b/src/main/java/evilcraft/block/DarkTank.java index 9f61f201af..d0b1047399 100644 --- a/src/main/java/evilcraft/block/DarkTank.java +++ b/src/main/java/evilcraft/block/DarkTank.java @@ -256,7 +256,7 @@ public void getSubBlocks(Item item, CreativeTabs creativeTabs, List list) { list.add(itemStackFilled); } capacity = capacity << 2; - } while(capacity < DarkTankConfig.maxTankSize); + } while(capacity << 2 < DarkTankConfig.maxTankSize); } } diff --git a/src/main/java/evilcraft/block/DarkTankConfig.java b/src/main/java/evilcraft/block/DarkTankConfig.java index 07e8081902..31bfd8890d 100644 --- a/src/main/java/evilcraft/block/DarkTankConfig.java +++ b/src/main/java/evilcraft/block/DarkTankConfig.java @@ -29,7 +29,12 @@ public class DarkTankConfig extends BlockContainerConfig { * The maximum tank size possible by combining tanks. */ @ConfigurableProperty(category = ConfigurableTypeCategory.MACHINE, comment = "The maximum tank size possible by combining tanks. (Make sure that you do not cross the max int size.)") - public static int maxTankSize = 4096000; + public static int maxTankSize = 65536000; + /** + * The maximum tank size visible in the creative tabs. + */ + @ConfigurableProperty(category = ConfigurableTypeCategory.MACHINE, comment = "The maximum tank size visible in the creative tabs. (Make sure that you do not cross the max int size.)") + public static int maxTankCreativeSize = 4096000; /** * Make a new instance.