From 8a87f326786c9ce5c05f39ac9e9f13e40f7d048c Mon Sep 17 00:00:00 2001 From: Sen Date: Sat, 21 Jun 2025 20:44:42 +0200 Subject: [PATCH] small cleanup --- common/src/main/java/common/init/ItemRegistry.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/src/main/java/common/init/ItemRegistry.java b/common/src/main/java/common/init/ItemRegistry.java index b3a7eeec..4b3c74b6 100755 --- a/common/src/main/java/common/init/ItemRegistry.java +++ b/common/src/main/java/common/init/ItemRegistry.java @@ -254,8 +254,8 @@ public abstract class ItemRegistry { for(BlockButton button : BlockButton.BUTTONS) { registerBlock(button, new ItemButton(button)); } - for(int z = 0; z < BlockTNT.TNTS.length; z++) { - registerBlock(BlockTNT.getByPower(z), new ItemBlock(BlockTNT.getByPower(z)).setColor(TextColor.RED)); + for(BlockTNT tnt : BlockTNT.TNTS) { + registerBlock(tnt, new ItemBlock(tnt).setColor(TextColor.RED)); } for(BlockFlower flower : BlockFlower.FLOWERS) {