Minor Cleanup

Fix up some null checks

Clean up redundant array creation to varargs parameter

Remove redundant type casts

Simplify arithmetic

Use foreach loops

Remove unused code

Minor cleanup
This commit is contained in:
mezz committed 2014-11-29 23:49:47 -08:00
1 parent 05a7ac6d93
commit 3884fecf77
222 files changed
+695 -1079

No files matched your search

@@ -20,7 +20,7 @@ import forestry.core.gui.slots.SlotClosed;
import forestry.energy.gadgets.EngineCopper;
public class ContainerEngineCopper extends ContainerForestry {
protected EngineCopper engine;
protected final EngineCopper engine;
public ContainerEngineCopper(InventoryPlayer player, EngineCopper tile) {
super(tile);
@@ -52,8 +52,8 @@ public class ContainerEngineCopper extends ContainerForestry {
public void detectAndSendChanges() {
super.detectAndSendChanges();
for (int i = 0; i < crafters.size(); i++)
engine.sendGUINetworkData(this, (ICrafting) crafters.get(i));
for (Object crafter : crafters)
engine.sendGUINetworkData(this, (ICrafting) crafter);
}
@Override