Fixed status for blocks including a video channel property
This commit is contained in:
parent
626566150a
commit
ff1a8d3b09
2 changed files with 18 additions and 13 deletions
|
@ -370,6 +370,9 @@ public abstract class TileEntityAbstractBase extends TileEntity implements IBloc
|
|||
}
|
||||
|
||||
if (isUpgradeable()) {
|
||||
// hide upgrades in the world on client side (server side will do it)
|
||||
if ( !hasWorld()
|
||||
|| !world.isRemote ) {
|
||||
// show updates details in the world or while sneaking in the inventory
|
||||
boolean showDetails = hasWorld();
|
||||
if (Commons.isClientThread()) {
|
||||
|
@ -386,6 +389,7 @@ public abstract class TileEntityAbstractBase extends TileEntity implements IBloc
|
|||
message.append(getUpgradeStatus(!hasWorld()));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return message;
|
||||
}
|
||||
|
|
|
@ -112,6 +112,7 @@ public abstract class TileEntityAbstractMachine extends TileEntityAbstractInterf
|
|||
public WarpDriveText getStatus() {
|
||||
final WarpDriveText textStatus = super.getStatus();
|
||||
if ( world != null
|
||||
&& !world.isRemote
|
||||
&& !textValidityIssues.isEmpty() ) {
|
||||
textStatus.append(textValidityIssues);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue