aboutsummaryrefslogtreecommitdiffhomepage
path: root/patches/server/0006-MC-Dev-fixes.patch
diff options
context:
space:
mode:
authorNassim Jahnke <[email protected]>2024-06-14 18:02:15 +0200
committerNassim Jahnke <[email protected]>2024-06-14 18:02:15 +0200
commit5442bffab5e57e864ec52d6647bc9e95e43fc227 (patch)
treee774a5fa3d8169a0118db724b9060fe03f001b57 /patches/server/0006-MC-Dev-fixes.patch
parent184a943ad4e901001ed58ab30b414d9680a0df29 (diff)
downloadPaper-5442bffab5e57e864ec52d6647bc9e95e43fc227.tar.gz
Paper-5442bffab5e57e864ec52d6647bc9e95e43fc227.zip
Make it compile
Diffstat (limited to 'patches/server/0006-MC-Dev-fixes.patch')
-rw-r--r--patches/server/0006-MC-Dev-fixes.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/patches/server/0006-MC-Dev-fixes.patch b/patches/server/0006-MC-Dev-fixes.patch
index 536a66afb3..168146736c 100644
--- a/patches/server/0006-MC-Dev-fixes.patch
+++ b/patches/server/0006-MC-Dev-fixes.patch
@@ -109,3 +109,16 @@ index 8eb1aca72df0bca292473e90ecb74159db4fe034..4b4dcee6abe7a6db43638d04665125ee
this.goalSelector.addGoal(3, new RangedCrossbowAttackGoal<>(this, 1.0D, 8.0F));
this.goalSelector.addGoal(8, new RandomStrollGoal(this, 0.6D));
this.goalSelector.addGoal(9, new LookAtPlayerGoal(this, Player.class, 15.0F, 1.0F));
+diff --git a/src/main/java/net/minecraft/world/level/chunk/status/ChunkStatusTasks.java b/src/main/java/net/minecraft/world/level/chunk/status/ChunkStatusTasks.java
+index e2b72817857a7a203aae4c9de4e01ba1396dc95b..82fc5133325a127890984d51c1381883759eb444 100644
+--- a/src/main/java/net/minecraft/world/level/chunk/status/ChunkStatusTasks.java
++++ b/src/main/java/net/minecraft/world/level/chunk/status/ChunkStatusTasks.java
+@@ -153,7 +153,7 @@ public class ChunkStatusTasks {
+ if (protochunk instanceof ImposterProtoChunk) {
+ chunk1 = ((ImposterProtoChunk) protochunk).getWrapped();
+ } else {
+- chunk1 = new LevelChunk(worldserver, protochunk, (chunk1) -> {
++ chunk1 = new LevelChunk(worldserver, protochunk, ($) -> { // Paper - decompile fix
+ ChunkStatusTasks.postLoadProtoChunk(worldserver, protochunk.getEntities());
+ });
+ generationchunkholder.replaceProtoChunk(new ImposterProtoChunk(chunk1, false));