From 7f832b450480ceef2e4cbe235a708f8ac1946855 Mon Sep 17 00:00:00 2001 From: LexManos Date: Wed, 27 Jun 2012 17:20:25 -0700 Subject: [PATCH] Fix container creative to not add Blocks above 256 unless it's told to. --- .../minecraft/net/minecraft/src/ContainerCreative.java.patch | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/forge/patches/minecraft/net/minecraft/src/ContainerCreative.java.patch b/forge/patches/minecraft/net/minecraft/src/ContainerCreative.java.patch index a97eec6f8..cec26e26b 100644 --- a/forge/patches/minecraft/net/minecraft/src/ContainerCreative.java.patch +++ b/forge/patches/minecraft/net/minecraft/src/ContainerCreative.java.patch @@ -1,6 +1,6 @@ --- ../src_base/minecraft/net/minecraft/src/ContainerCreative.java 0000-00-00 00:00:00.000000000 -0000 +++ ../src_work/minecraft/net/minecraft/src/ContainerCreative.java 0000-00-00 00:00:00.000000000 -0000 -@@ -68,17 +68,21 @@ +@@ -68,17 +68,20 @@ this.itemList.add(new ItemStack(var2[var12], 1, var13)); } @@ -17,11 +17,10 @@ - - for (var12 = 1; var12 < 16; ++var12) + -+ int x = 0; + for (Item item : Item.itemsList) { - this.itemList.add(new ItemStack(Item.dyePowder.shiftedIndex, 1, var12)); -+ if (x++ >= 256 && item != null) ++ if (item != null && !(item instanceof ItemBlock)) + { + item.addCreativeItems((ArrayList)itemList); + }