Remove redundant casts, unnecessary object creation, and string ==

This commit is contained in:
mezz committed 2016-10-21 00:32:06 -07:00
1 parent 100784b51b
commit a4cd13282a
57 files changed
+180 -156

No files matched your search

@@ -32,7 +32,7 @@ public class BinnieModProxy implements IBinnieModProxy {
@Override
public void sendToPlayer(final MessageBase packet, final EntityPlayer entityplayer) {
if (entityplayer instanceof EntityPlayerMP) {
this.mod.getNetworkWrapper().sendTo((IMessage) packet.GetMessage(), (EntityPlayerMP) entityplayer);
this.mod.getNetworkWrapper().sendTo(packet.GetMessage(), (EntityPlayerMP) entityplayer);
}
}
@@ -91,7 +91,7 @@ public final class BinnieProxyClient extends BinnieProxy implements IBinnieProxy
public boolean checkTexture(final BinnieResource location) {
final SimpleTexture texture = new SimpleTexture(location.getResourceLocation());
try {
((ITextureObject) texture).loadTexture(this.getMinecraftInstance().getResourceManager());
texture.loadTexture(this.getMinecraftInstance().getResourceManager());
} catch (IOException e) {
return false;
}