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

@@ -42,7 +42,7 @@ public class TextureBiomefinder extends TextureAtlasSprite {
if (minecraft.theWorld != null && minecraft.thePlayer != null)
updateCompass(minecraft.theWorld, minecraft.thePlayer.posX, minecraft.thePlayer.posZ, minecraft.thePlayer.rotationYaw, false, true);
else
updateCompass((World)null, 0.0d, 0.0d, 0.0d, true, true);
updateCompass(null, 0.0d, 0.0d, 0.0d, true, true);
}
public void updateCompass(World world, double playerX, double playerZ, double playerYaw, boolean par8, boolean hasSpin) {