mirror of
https://github.com/GTNewHorizons/Binnie.git
synced 2026-11-22 13:09:47 +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
@@ -55,7 +55,7 @@ public class BlockFlower extends BlockContainer {
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public void registerBlockIcons(IIconRegister register) {
|
||||
for (EnumFlowerType type : EnumFlowerType.values()) {
|
||||
for (EnumFlowerType type : EnumFlowerType.VALUES) {
|
||||
type.registerIcons(register);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user