Avoid start/stop doing anything on client.
This commit is contained in:
@@ -96,10 +96,16 @@ public final class ComputerBlock extends HorizontalBlock {
|
||||
}
|
||||
}
|
||||
} else {
|
||||
if (world.isRemote()) {
|
||||
openTerminalScreen(computer);
|
||||
if (player.isSneaking()) {
|
||||
if (!world.isRemote()) {
|
||||
computer.start();
|
||||
}
|
||||
} else {
|
||||
computer.start();
|
||||
if (world.isRemote()) {
|
||||
openTerminalScreen(computer);
|
||||
} else {
|
||||
computer.start();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -134,6 +134,11 @@ public final class ComputerTileEntity extends AbstractTileEntity implements ITic
|
||||
return;
|
||||
}
|
||||
|
||||
final World world = getWorld();
|
||||
if (world == null || world.isRemote()) {
|
||||
return;
|
||||
}
|
||||
|
||||
setBootError(null);
|
||||
setRunState(RunState.LOADING_DEVICES);
|
||||
loadDevicesDelay = 0;
|
||||
@@ -144,6 +149,11 @@ public final class ComputerTileEntity extends AbstractTileEntity implements ITic
|
||||
return;
|
||||
}
|
||||
|
||||
final World world = getWorld();
|
||||
if (world == null || world.isRemote()) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (runState == RunState.LOADING_DEVICES) {
|
||||
setRunState(RunState.STOPPED);
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user