mirror of
https://github.com/GTNewHorizons/EnderIO.git
synced 2026-11-17 19:15:09 +00:00
Fixed client sync failing when a machine finishes running.
This commit is contained in:
1 parent
2b30f4c542
commit
40f4b1fb57
2 files changed
+10
-13
No files matched your search
@@ -18,7 +18,7 @@ public abstract class AbstractPoweredTaskEntity extends AbstractMachineEntity {
|
||||
protected final Random random = new Random();
|
||||
|
||||
protected int ticksSinceCheckedRecipe = 0;
|
||||
protected boolean startFailed = false;
|
||||
protected boolean startFailed = false;
|
||||
|
||||
protected int lastProgressScaled = -1;
|
||||
|
||||
@@ -78,8 +78,8 @@ public abstract class AbstractPoweredTaskEntity extends AbstractMachineEntity {
|
||||
|
||||
@Override
|
||||
protected boolean processTasks(boolean redstoneChecksPassed) {
|
||||
|
||||
if(!redstoneChecksPassed) {
|
||||
|
||||
if(!redstoneChecksPassed) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -104,15 +104,14 @@ public abstract class AbstractPoweredTaskEntity extends AbstractMachineEntity {
|
||||
IMachineRecipe nextRecipe = canStartNextTask(chance);
|
||||
if(nextRecipe != null) {
|
||||
boolean started = startNextTask(nextRecipe, chance);
|
||||
startFailed = !started;
|
||||
//requiresClientSync |= started;
|
||||
if(started) {
|
||||
PacketHandler.sendToAllAround(new PacketCurrentTask(this), this);
|
||||
if(started != startFailed) {
|
||||
PacketHandler.sendToAllAround(new PacketCurrentTask(this), this);
|
||||
}
|
||||
startFailed = !started;
|
||||
} else {
|
||||
startFailed = true;
|
||||
}
|
||||
|
||||
|
||||
return requiresClientSync;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user