update
This commit is contained in:
1 parent
af35504016
commit
731b78cf9d
2 files changed
+5
-8
No files matched your search
@@ -1,12 +1,10 @@
|
||||
package carpet.mixins;
|
||||
|
||||
import carpet.CarpetSettings;
|
||||
import carpet.fakes.ServerLightingProviderInterface;
|
||||
import net.minecraft.server.world.ServerLightingProvider;
|
||||
import net.minecraft.util.math.BlockPos;
|
||||
import net.minecraft.util.math.ChunkPos;
|
||||
import net.minecraft.util.math.ChunkSectionPos;
|
||||
import net.minecraft.world.IWorld;
|
||||
import net.minecraft.world.LightType;
|
||||
import net.minecraft.world.chunk.Chunk;
|
||||
import net.minecraft.world.chunk.ChunkNibbleArray;
|
||||
@@ -39,9 +37,9 @@ public abstract class ServerLightingProvider_scarpetMixin extends LightingProvid
|
||||
{
|
||||
//ChunkPos pos = new ChunkPos(x, z);
|
||||
int j;
|
||||
for(j = -1; j < 17; ++j) {
|
||||
super.queueData(LightType.BLOCK, ChunkSectionPos.from(pos, j), new ChunkNibbleArray());
|
||||
super.queueData(LightType.SKY, ChunkSectionPos.from(pos, j), new ChunkNibbleArray());
|
||||
for(j = -1; j < 17; ++j) { // skip some recomp
|
||||
super.queueData(LightType.BLOCK, ChunkSectionPos.from(pos, j), new ChunkNibbleArray(), false);
|
||||
super.queueData(LightType.SKY, ChunkSectionPos.from(pos, j), new ChunkNibbleArray(), false);
|
||||
}
|
||||
for(j = 0; j < 16; ++j) {
|
||||
super.updateSectionStatus(ChunkSectionPos.from(pos, j), true);
|
||||
|
||||
+2
-3
@@ -72,7 +72,6 @@ public abstract class ThreadedAnvilChunkStorage_scarpetChunkCreationMixin implem
|
||||
@Shadow
|
||||
@Final
|
||||
private ServerLightingProvider serverLightingProvider;
|
||||
@Shadow @Final private Queue<Runnable> field_19343;
|
||||
|
||||
@Shadow
|
||||
@Final
|
||||
@@ -114,8 +113,8 @@ public abstract class ThreadedAnvilChunkStorage_scarpetChunkCreationMixin implem
|
||||
|
||||
@Unique
|
||||
private void addTicket(final ChunkPos pos, final ChunkStatus status)
|
||||
{
|
||||
this.ticketManager.addTicketWithLevel(ChunkTicketType.UNKNOWN, pos, 33 + ChunkStatus.getTargetGenerationRadius(status), pos);
|
||||
{ // UNKNOWN
|
||||
this.ticketManager.addTicketWithLevel(ChunkTicketType.field_14032, pos, 33 + ChunkStatus.getTargetGenerationRadius(status), pos);
|
||||
}
|
||||
|
||||
@Unique
|
||||
|
||||
Reference in new issue
Block a user