mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-02-24 15:00:48 +00:00
why didn't it do that to begin with?
This commit is contained in:
parent
2c6d5f9fde
commit
a57a284d1c
@ -47,6 +47,8 @@ public class EntityFalloutRain extends Entity {
|
|||||||
|
|
||||||
if(!worldObj.isRemote) {
|
if(!worldObj.isRemote) {
|
||||||
|
|
||||||
|
long start = System.currentTimeMillis();
|
||||||
|
|
||||||
if(firstTick) {
|
if(firstTick) {
|
||||||
if(chunksToProcess.isEmpty() && outerChunksToProcess.isEmpty()) gatherChunks();
|
if(chunksToProcess.isEmpty() && outerChunksToProcess.isEmpty()) gatherChunks();
|
||||||
firstTick = false;
|
firstTick = false;
|
||||||
@ -55,6 +57,7 @@ public class EntityFalloutRain extends Entity {
|
|||||||
if(tickDelay == 0) {
|
if(tickDelay == 0) {
|
||||||
tickDelay = BombConfig.fDelay;
|
tickDelay = BombConfig.fDelay;
|
||||||
|
|
||||||
|
while(System.currentTimeMillis() < start + BombConfig.mk5) {
|
||||||
if(!chunksToProcess.isEmpty()) {
|
if(!chunksToProcess.isEmpty()) {
|
||||||
long chunkPos = chunksToProcess.remove(chunksToProcess.size() - 1); // Just so it doesn't shift the whole list every time
|
long chunkPos = chunksToProcess.remove(chunksToProcess.size() - 1); // Just so it doesn't shift the whole list every time
|
||||||
int chunkPosX = (int) (chunkPos & Integer.MAX_VALUE);
|
int chunkPosX = (int) (chunkPos & Integer.MAX_VALUE);
|
||||||
@ -96,6 +99,8 @@ public class EntityFalloutRain extends Entity {
|
|||||||
|
|
||||||
} else {
|
} else {
|
||||||
setDead();
|
setDead();
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user