You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
index 040f4043ac795b8586dc0bff920faae049060074..e0f6fd94e628973ba9b99fbdf1e1bfc2e68b8f6d 100644
203
+
index 58057620891e9f68330770e434594621bde3883f..699a1f6266d474ae7f1d6f8b9faac2d5489d14ea 100644
204
204
--- a/net/minecraft/world/level/Level.java
205
205
+++ b/net/minecraft/world/level/Level.java
206
-
@@ -168,6 +168,7 @@ public abstract class Level implements LevelAccessor, UUIDLookup<Entity>, AutoCl
207
-
}
206
+
@@ -169,6 +169,7 @@ public abstract class Level implements LevelAccessor, UUIDLookup<Entity>, AutoCl
208
207
// Paper end - add paper world config
209
208
209
+
public static @Nullable BlockPos lastPhysicsProblem; // Spigot
210
210
+ public final io.papermc.paper.antixray.ChunkPacketBlockController chunkPacketBlockController; // Paper - Anti-Xray
211
-
public static BlockPos lastPhysicsProblem; // Spigot
212
211
private int tileTickPosition;
213
212
public final Map<ServerExplosion.CacheKey, Float> explosionDensityCache = new HashMap<>(); // Paper - Optimize explosions
214
-
@@ -212,7 +213,8 @@ public abstract class Level implements LevelAccessor, UUIDLookup<Entity>, AutoCl
213
+
public java.util.ArrayDeque<net.minecraft.world.level.block.RedstoneTorchBlock.Toggle> redstoneUpdateInfos; // Paper - Faster redstone torch rapid clock removal; Move from Map in BlockRedstoneTorch to here
214
+
@@ -211,7 +212,8 @@ public abstract class Level implements LevelAccessor, UUIDLookup<Entity>, AutoCl
java.util.function.Function<org.spigotmc.SpigotWorldConfig, // Spigot - create per world config
@@ -221,15 +221,15 @@ index 040f4043ac795b8586dc0bff920faae049060074..e0f6fd94e628973ba9b99fbdf1e1bfc2
221
221
) {
222
222
this.spigotConfig = new org.spigotmc.SpigotWorldConfig(((net.minecraft.world.level.storage.PrimaryLevelData) levelData).getLevelName()); // Spigot
223
223
this.paperConfig = paperWorldConfigCreator.apply(this.spigotConfig); // Paper - create paper world config
224
-
@@ -291,6 +293,7 @@ public abstract class Level implements LevelAccessor, UUIDLookup<Entity>, AutoCl
224
+
@@ -288,6 +290,7 @@ public abstract class Level implements LevelAccessor, UUIDLookup<Entity>, AutoCl
225
225
public void onBorderSetDamageSafeZOne(WorldBorder border, double safeZoneRadius) {}
226
226
});
227
227
// CraftBukkit end
228
228
+ this.chunkPacketBlockController = this.paperConfig().anticheat.antiXray.enabled ? new io.papermc.paper.antixray.ChunkPacketBlockControllerAntiXray(this, executor) : io.papermc.paper.antixray.ChunkPacketBlockController.NO_OPERATION_INSTANCE; // Paper - Anti-Xray
229
229
}
230
230
231
231
// Paper start - Cancel hit for vanished players
232
-
@@ -496,6 +499,7 @@ public abstract class Level implements LevelAccessor, UUIDLookup<Entity>, AutoCl
232
+
@@ -493,6 +496,7 @@ public abstract class Level implements LevelAccessor, UUIDLookup<Entity>, AutoCl
233
233
snapshot.setFlags(flags); // Paper - always set the flag of the most recent call to mitigate issues with multiple update at the same pos with different flags
0 commit comments