Reduces visibility of internal fields/methods
Reduces the visibility of all fields to private and create setters/getters when necessary. Exceptions are fields with GuiSync as these need to be public. Reduces the visibility of internal methods to private/protected/default when possible.
This commit is contained in:
@@ -28,11 +28,11 @@ public class TileCableBusTESR extends TileCableBus
|
||||
@Override
|
||||
protected void updateTileSetting()
|
||||
{
|
||||
if( !this.cb.requiresDynamicRender )
|
||||
if( !this.getCableBus().isRequiresDynamicRender() )
|
||||
{
|
||||
try
|
||||
{
|
||||
final TileCableBus tcb = (TileCableBus) BlockCableBus.noTesrTile.newInstance();
|
||||
final TileCableBus tcb = (TileCableBus) BlockCableBus.getNoTesrTile().newInstance();
|
||||
tcb.copyFrom( this );
|
||||
this.getWorld().setTileEntity( this.pos, tcb );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user