mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-01 04:32:11 -07:00
chore: cleanup annotations in api adventure patch
This commit is contained in:
@@ -4545,13 +4545,13 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
+ this.hasSkyLight = hasBlockLight; // Nice variable name.
|
||||
+ this.theLightEngine = new ca.spottedleaf.starlight.common.light.StarLightInterface(chunkProvider, this.hasSkyLight, this.hasBlockLight, this);
|
||||
+ // Paper end - replace light engine impl
|
||||
+ }
|
||||
+
|
||||
}
|
||||
|
||||
+ // Paper start - replace light engine impl
|
||||
+ protected final ChunkAccess getChunk(final int chunkX, final int chunkZ) {
|
||||
+ return ((ServerLevel)this.theLightEngine.getWorld()).getChunkSource().getChunkAtImmediately(chunkX, chunkZ);
|
||||
}
|
||||
|
||||
+ }
|
||||
+
|
||||
+ protected long relightCounter;
|
||||
+
|
||||
+ public int relight(java.util.Set<ChunkPos> chunks_param,
|
||||
@@ -5167,13 +5167,13 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
+ } else if (flag1) {
|
||||
+ skyNibbles[y - minSection] = new ca.spottedleaf.starlight.common.light.SWMRNibbleArray(null, sectionData.getInt(SKYLIGHT_STATE_TAG));
|
||||
+ // Paper end - rewrite the light engine
|
||||
+ }
|
||||
}
|
||||
+
|
||||
+ // Paper start - rewrite the light engine
|
||||
+ } catch (Exception ex) {
|
||||
+ LOGGER.warn("Failed to load light data for chunk " + chunkPos + " in world '" + world.getWorld().getName() + "', light will be regenerated", ex);
|
||||
+ flag = false;
|
||||
}
|
||||
+ }
|
||||
+ // Paper end - rewrite light engine
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user