mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-25 14:24:35 +00:00
Remove unused variable & use variable instead of requery
This commit is contained in:
1 parent
3cc755f33d
commit
fac9902e06
2 files changed
+1
-2
No files matched your search
@@ -137,7 +137,6 @@ public class GlowPanelModel extends OBJBakedModelBase
|
||||
if(state != null && tempState == null)
|
||||
{
|
||||
int hash = TileEntityGlowPanel.hash((IExtendedBlockState)state);
|
||||
EnumColor color = ((IExtendedBlockState)state).getValue(PropertyColor.INSTANCE).color;
|
||||
|
||||
if(!glowPanelCache.containsKey(hash))
|
||||
{
|
||||
|
||||
@@ -122,7 +122,7 @@ public class TransmitterModel extends OBJBakedModelBase
|
||||
|
||||
if(colorProp != null && colorProp.color != null)
|
||||
{
|
||||
color = extended.getValue(PropertyColor.INSTANCE).color.ordinal();
|
||||
color = colorProp.color.ordinal();
|
||||
}
|
||||
|
||||
OBJState obj = extended.getValue(OBJProperty.INSTANCE);
|
||||
|
||||
Reference in new issue
Block a user