Non static access of static members

This commit is contained in:
yueh
2015-08-06 18:59:31 +02:00
committed by thatsIch
parent b0bb793a0e
commit 6488119318
5 changed files with 23 additions and 21 deletions
@@ -72,14 +72,14 @@ public class PartToggleBus extends PartBasicState
@Override
public void setColors( ModelGenerator renderer, boolean hasChan, boolean hasPower )
{
this.hasRedstone = ( this.clientFlags & this.REDSTONE_FLAG ) == this.REDSTONE_FLAG;
this.hasRedstone = ( this.clientFlags & REDSTONE_FLAG ) == REDSTONE_FLAG;
super.setColors( renderer, hasChan && this.hasRedstone, hasPower && this.hasRedstone );
}
@Override
protected int populateFlags( int cf )
{
return cf | ( this.getIntention() ? this.REDSTONE_FLAG : 0 );
return cf | ( this.getIntention() ? REDSTONE_FLAG : 0 );
}
protected boolean getIntention()