Patches!!! (2)

This commit is contained in:
Owen1212055
2023-12-06 11:00:26 -05:00
parent 66719a05d3
commit 2633e8f90d
68 changed files with 85 additions and 158 deletions

View File

@@ -190,14 +190,16 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
timings.chunkTicksBlocks.stopTiming(); // Paper
gameprofilerfiller.pop();
}
@@ -0,0 +0,0 @@ public class ServerLevel extends Level implements WorldGenLevel {
@VisibleForTesting
- public void tickPrecipitation(BlockPos pos) {
public void tickPrecipitation(BlockPos pos) {
- BlockPos blockposition1 = this.getHeightmapPos(Heightmap.Types.MOTION_BLOCKING, pos);
- BlockPos blockposition2 = blockposition1.below();
+ public void tickPrecipitation(BlockPos.MutableBlockPos blockposition1, final LevelChunk chunk) { // Paper - optimise chunk ticking
+ // Paper start - optimise chunk ticking
+ // Paper start - optimise chunk ticking
+ tickPrecipitation(pos.mutable(), this.getChunkAt(pos));
+ }
+ public void tickPrecipitation(BlockPos.MutableBlockPos blockposition1, final LevelChunk chunk) {
+ int normalY = chunk.getHeight(Heightmap.Types.MOTION_BLOCKING, blockposition1.getX() & 15, blockposition1.getZ() & 15) + 1;
+ int downY = normalY - 1;
+ blockposition1.setY(normalY);