mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-19 03:49:29 +00:00
quick fix : Too weak variable type leads to unnecessary cast
This commit is contained in:
1 parent
018ae8bf8b
commit
a78589188e
2 files changed
+6
-6
No files matched your search
@@ -279,7 +279,7 @@ public class DaggerRender extends Render {
|
||||
boolean renderEffect) {
|
||||
Item k = par3ItemStack.getItem();
|
||||
int l = par3ItemStack.getItemDamage();
|
||||
Object object = par3ItemStack.getIconIndex();
|
||||
IIcon iIcon = par3ItemStack.getIconIndex();
|
||||
float f;
|
||||
int i1;
|
||||
float f1;
|
||||
@@ -343,8 +343,8 @@ public class DaggerRender extends Render {
|
||||
par2TextureManager.getResourceLocation(par3ItemStack.getItemSpriteNumber());
|
||||
par2TextureManager.bindTexture(resourcelocation);
|
||||
|
||||
if (object == null) {
|
||||
object = ((TextureMap)
|
||||
if (iIcon == null) {
|
||||
iIcon = ((TextureMap)
|
||||
Minecraft.getMinecraft().getTextureManager().getTexture(resourcelocation))
|
||||
.getAtlasSprite("missingno");
|
||||
}
|
||||
@@ -358,7 +358,7 @@ public class DaggerRender extends Render {
|
||||
GL11.glColor4f(f, f1, f2, 1.0F);
|
||||
}
|
||||
|
||||
this.renderIcon(par4, par5, (IIcon) object, 16, 16);
|
||||
this.renderIcon(par4, par5, iIcon, 16, 16);
|
||||
GL11.glEnable(GL11.GL_LIGHTING);
|
||||
|
||||
if (par3ItemStack.hasEffect(0)) {
|
||||
|
||||
Reference in new issue
Block a user