mirror of
https://github.com/GTNewHorizons/Binnie.git
synced 2026-11-21 04:32:24 +00:00
Remove redundant casts, unnecessary object creation, and string ==
This commit is contained in:
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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user