Improved jump message when chunkloading fails
This commit is contained in:
parent
df613de022
commit
5938f81157
1 changed files with 6 additions and 4 deletions
|
@ -290,8 +290,9 @@ public class JumpSequencer extends AbstractSequencer {
|
||||||
for (int z = z1; z <= z2; z++) {
|
for (int z = z1; z <= z2; z++) {
|
||||||
chunkCount++;
|
chunkCount++;
|
||||||
if (chunkCount > sourceWorldTicket.getMaxChunkListDepth()) {
|
if (chunkCount > sourceWorldTicket.getMaxChunkListDepth()) {
|
||||||
reason.append(String.format("Ship is extending over too many chunks in source world. Max is currently set to %d in forgeChunkLoading.cfg. Aborting.",
|
reason.append(String.format("Ship is extending over %d chunks in source world, this is too much! Max is currently set to %d in config/forgeChunkLoading.cfg. Aborting.",
|
||||||
sourceWorldTicket.getMaxChunkListDepth()));
|
(x2 - x1 + 1) * (z2 - z1 + 1),
|
||||||
|
sourceWorldTicket.getMaxChunkListDepth()));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
ForgeChunkManager.forceChunk(sourceWorldTicket, new ChunkCoordIntPair(x, z));
|
ForgeChunkManager.forceChunk(sourceWorldTicket, new ChunkCoordIntPair(x, z));
|
||||||
|
@ -323,8 +324,9 @@ public class JumpSequencer extends AbstractSequencer {
|
||||||
for (int z = z1; z <= z2; z++) {
|
for (int z = z1; z <= z2; z++) {
|
||||||
chunkCount++;
|
chunkCount++;
|
||||||
if (chunkCount > targetWorldTicket.getMaxChunkListDepth()) {
|
if (chunkCount > targetWorldTicket.getMaxChunkListDepth()) {
|
||||||
reason.append(String.format("Ship is extending over too many chunks in target world. Max is currently set to %d in forgeChunkLoading.cfg. Aborting.",
|
reason.append(String.format("Ship is extending over %d chunks in target world, this is too much! Max is currently set to %d in config/forgeChunkLoading.cfg. Aborting.",
|
||||||
targetWorldTicket.getMaxChunkListDepth()));
|
(x2 - x1 + 1) * (z2 - z1 + 1),
|
||||||
|
targetWorldTicket.getMaxChunkListDepth()));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
ForgeChunkManager.forceChunk(targetWorldTicket, new ChunkCoordIntPair(x, z));
|
ForgeChunkManager.forceChunk(targetWorldTicket, new ChunkCoordIntPair(x, z));
|
||||||
|
|
Loading…
Add table
Reference in a new issue