added Remote Awareness Upgrade, new sort icons created by ChJees

This commit is contained in:
Matthias Mann committed 2015-04-20 05:05:42 +02:00
1 parent 9dd1d45078
commit d8d1e5a23a
13 files changed
+135 -82

No files matched your search

@@ -50,7 +50,7 @@ public abstract class AbstractMachineEntity extends TileEntityEio implements ISi
protected Map<ForgeDirection, IoMode> faceModes;
private int[] allSlots;
private final int[] allSlots;
protected boolean notifyNeighbours = false;
@@ -238,27 +238,8 @@ public abstract class AbstractMachineEntity extends TileEntityEio implements ISi
}
if(worldObj.isRemote) {
// check if the block on the client needs to update its texture
if(isActive() != lastActive) {
ticksSinceActiveChanged++;
if(ticksSinceActiveChanged > 20 || isActive()) {
ticksSinceActiveChanged = 0;
lastActive = isActive();
forceClientUpdate = false;
worldObj.markBlockForUpdate(xCoord, yCoord, zCoord);
}
}
if(hasSound()) {
updateSound();
}
if(forceClientUpdate) {
worldObj.markBlockForUpdate(xCoord, yCoord, zCoord);
forceClientUpdate = false;
}
updateEntityClient();
return;
} // else is server, do all logic only on the server
boolean requiresClientSync = forceClientUpdate;
@@ -293,6 +274,27 @@ public abstract class AbstractMachineEntity extends TileEntityEio implements ISi
}
protected void updateEntityClient() {
// check if the block on the client needs to update its texture
if(isActive() != lastActive) {
ticksSinceActiveChanged++;
if(ticksSinceActiveChanged > 20 || isActive()) {
ticksSinceActiveChanged = 0;
lastActive = isActive();
forceClientUpdate = true;
}
}
if(hasSound()) {
updateSound();
}
if(forceClientUpdate) {
worldObj.markBlockForUpdate(xCoord, yCoord, zCoord);
forceClientUpdate = false;
}
}
protected boolean doSideIo() {
if(faceModes == null) {
return false;