mirror of
https://github.com/GTNewHorizons/Binnie.git
synced 2026-11-27 23:46:05 +00:00
Cache frequent Enum#values() calls (#86)
This commit is contained in:
1 parent
84d462d8d5
commit
a48f59e0ed
64 files changed
+202
-121
No files matched your search
@@ -49,7 +49,7 @@ public class ItemClay extends Item {
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public void getSubItems(Item item, CreativeTabs tab, List<ItemStack> list) {
|
||||
for (EnumFlowerColor c : EnumFlowerColor.values()) {
|
||||
for (EnumFlowerColor c : EnumFlowerColor.VALUES) {
|
||||
list.add(new ItemStack(this, 1, c.ordinal()));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user