mirror of
https://github.com/GTNewHorizons/EnderIO.git
synced 2026-11-18 19:39:14 +00:00
#1121 Killer Joe XP bar doesn't update if not active
This commit is contained in:
1 parent
aed7f58932
commit
421d09ffe6
2 files changed
+6
-5
No files matched your search
@@ -110,10 +110,6 @@ public class TileKillerJoe extends AbstractMachineEntity implements IFluidHandle
|
||||
@Override
|
||||
protected boolean processTasks(boolean redstoneCheckPassed) {
|
||||
|
||||
if(!redstoneCheckPassed) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if(worldObj.getTotalWorldTime() % 10 != 0) {
|
||||
return false;
|
||||
}
|
||||
@@ -126,6 +122,10 @@ public class TileKillerJoe extends AbstractMachineEntity implements IFluidHandle
|
||||
PacketHandler.sendToAllAround(new PacketExperianceContainer(this), this);
|
||||
xpCon.setDirty(false);
|
||||
}
|
||||
|
||||
if(!redstoneCheckPassed) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if(fuelTank.getFluidAmount() < fuelTank.getCapacity() * 0.7f) {
|
||||
return false;
|
||||
@@ -178,7 +178,7 @@ public class TileKillerJoe extends AbstractMachineEntity implements IFluidHandle
|
||||
hooverXP(entity);
|
||||
} else {
|
||||
double d = 1 - (Math.max(0.1, totalDistance) / maxDist);
|
||||
double speed = 0.005 + (d * 0.02);
|
||||
double speed = 0.01 + (d * 0.02);
|
||||
|
||||
entity.motionX += xDist / totalDistance * speed;
|
||||
entity.motionZ += zDist / totalDistance * speed;
|
||||
|
||||
Reference in new issue
Block a user