mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-25 14:24:35 +00:00
remove some now redundant variable assignments
This commit is contained in:
1 parent
046411a625
commit
837f1a09fb
5 files changed
+9
-21
No files matched your search
@@ -484,8 +484,7 @@ public class ClientTickHandler
|
||||
NetworkPlayerInfo info = player.getPlayerInfo();
|
||||
|
||||
if (info != null) {
|
||||
Map<MinecraftProfileTexture.Type, ResourceLocation> map = info.playerTextures;
|
||||
map.put(MinecraftProfileTexture.Type.CAPE, cape);
|
||||
info.playerTextures.put(MinecraftProfileTexture.Type.CAPE, cape);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -44,8 +44,7 @@ public abstract class GuiElement
|
||||
{
|
||||
if(guiObj instanceof GuiContainer)
|
||||
{
|
||||
GuiContainer guiC = ((GuiContainer)guiObj);
|
||||
guiC.xSize += xSize;
|
||||
((GuiContainer)guiObj).xSize += xSize;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -53,8 +52,7 @@ public abstract class GuiElement
|
||||
{
|
||||
if(guiObj instanceof GuiContainer)
|
||||
{
|
||||
GuiContainer guiC = ((GuiContainer)guiObj);
|
||||
guiC.ySize += ySize;
|
||||
((GuiContainer)guiObj).ySize += ySize;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -62,8 +60,7 @@ public abstract class GuiElement
|
||||
{
|
||||
if(guiObj instanceof GuiContainer)
|
||||
{
|
||||
GuiContainer guiC = ((GuiContainer)guiObj);
|
||||
guiC.guiLeft += guiLeft;
|
||||
((GuiContainer)guiObj).guiLeft += guiLeft;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -71,8 +68,7 @@ public abstract class GuiElement
|
||||
{
|
||||
if(guiObj instanceof GuiContainer)
|
||||
{
|
||||
GuiContainer guiC = ((GuiContainer)guiObj);
|
||||
guiC.guiTop += guiTop;
|
||||
((GuiContainer)guiObj).guiTop += guiTop;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -258,7 +258,7 @@ public class MekanismRenderer
|
||||
|
||||
public static boolean isDrawing(Tessellator tess)
|
||||
{
|
||||
return isDrawing(tess.getBuffer());
|
||||
return tess.getBuffer().isDrawing;
|
||||
}
|
||||
|
||||
public static boolean isDrawing(VertexBuffer buffer)
|
||||
@@ -537,9 +537,7 @@ public class MekanismRenderer
|
||||
|
||||
public static float getPartialTick()
|
||||
{
|
||||
Timer t = Minecraft.getMinecraft().timer;
|
||||
return t.renderPartialTicks;
|
||||
|
||||
return Minecraft.getMinecraft().timer.renderPartialTicks;
|
||||
}
|
||||
|
||||
public static ResourceLocation getBlocksTexture()
|
||||
|
||||
@@ -65,7 +65,7 @@ public abstract class RenderTransmitterBase<T extends TileEntityTransmitter> ext
|
||||
|
||||
public void renderTransparency(VertexBuffer renderer, TextureAtlasSprite icon, IBakedModel cc, ColourRGBA color)
|
||||
{
|
||||
if(!MekanismRenderer.isDrawing(renderer))
|
||||
if(!renderer.isDrawing)
|
||||
{
|
||||
renderer.begin(GL11.GL_QUADS, DefaultVertexFormats.ITEM);
|
||||
}
|
||||
|
||||
@@ -122,12 +122,7 @@ public class SoundHandler
|
||||
//Fudge required because sound thread gets behind and the biMap crashes when rapidly toggling sounds.
|
||||
public static Map<ISound, String> getSoundMap()
|
||||
{
|
||||
if(invPlayingSounds == null)
|
||||
{
|
||||
invPlayingSounds = getSoundManager().invPlayingSounds;
|
||||
}
|
||||
|
||||
return invPlayingSounds;
|
||||
return mc.getSoundHandler().sndManager.invPlayingSounds;
|
||||
}
|
||||
|
||||
public static boolean canRestartSound(ITickableSound sound)
|
||||
|
||||
Reference in new issue
Block a user