mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-18 11:19:28 +00:00
Cache frequent Enum#values() calls (#107)
This commit is contained in:
1 parent
7e1398438d
commit
3fb58ad6a5
31 files changed
+162
-122
No files matched your search
@@ -61,7 +61,7 @@ public class BlockFarm extends BlockStructure {
|
||||
continue;
|
||||
}
|
||||
|
||||
for (EnumFarmBlockTexture block : EnumFarmBlockTexture.values()) {
|
||||
for (EnumFarmBlockTexture block : EnumFarmBlockTexture.VALUES) {
|
||||
ItemStack stack = new ItemStack(item, 1, i);
|
||||
NBTTagCompound compound = new NBTTagCompound();
|
||||
block.saveToCompound(compound);
|
||||
|
||||
Reference in new issue
Block a user