geforkt von Mirrors/Paper
Update upstream CB
--- work/CraftBukkit Submodule work/CraftBukkit 0e1cea5a..f40143ef: > SPIGOT-4691: Fix custom world generator when placing tiles
Dieser Commit ist enthalten in:
Ursprung
b963196ed5
Commit
86e6d961f0
@ -1,4 +1,4 @@
|
||||
From b97faa806b0369e82235daa8f3360c404c973e1b Mon Sep 17 00:00:00 2001
|
||||
From 5d077d44d4bbe2d4436cafe783621f53061000c8 Mon Sep 17 00:00:00 2001
|
||||
From: stonar96 <minecraft.stonar96@gmail.com>
|
||||
Date: Mon, 20 Aug 2018 03:03:58 +0200
|
||||
Subject: [PATCH] Anti-Xray
|
||||
@ -1571,13 +1571,13 @@ index c25c82bf1..1bd2167aa 100644
|
||||
if (iblockdata1 == null) {
|
||||
// CraftBukkit start - remove blockstate if failed
|
||||
diff --git a/src/main/java/org/bukkit/craftbukkit/generator/CraftChunkData.java b/src/main/java/org/bukkit/craftbukkit/generator/CraftChunkData.java
|
||||
index 550416bef..923d1b282 100644
|
||||
index 791017258..29695da2e 100644
|
||||
--- a/src/main/java/org/bukkit/craftbukkit/generator/CraftChunkData.java
|
||||
+++ b/src/main/java/org/bukkit/craftbukkit/generator/CraftChunkData.java
|
||||
@@ -17,9 +17,11 @@ import org.bukkit.material.MaterialData;
|
||||
public final class CraftChunkData implements ChunkGenerator.ChunkData {
|
||||
@@ -21,9 +21,11 @@ public final class CraftChunkData implements ChunkGenerator.ChunkData {
|
||||
private final int maxHeight;
|
||||
private final ChunkSection[] sections;
|
||||
private Set<BlockPosition> tiles;
|
||||
+ private World world; // Paper - Anti-Xray
|
||||
|
||||
public CraftChunkData(World world) {
|
||||
@ -1586,7 +1586,7 @@ index 550416bef..923d1b282 100644
|
||||
}
|
||||
|
||||
/* pp for tests */ CraftChunkData(int maxHeight) {
|
||||
@@ -145,7 +147,7 @@ public final class CraftChunkData implements ChunkGenerator.ChunkData {
|
||||
@@ -157,7 +159,7 @@ public final class CraftChunkData implements ChunkGenerator.ChunkData {
|
||||
private ChunkSection getChunkSection(int y, boolean create) {
|
||||
ChunkSection section = sections[y >> 4];
|
||||
if (create && section == null) {
|
||||
|
@ -1,4 +1,4 @@
|
||||
From 370fdd742cc646eda4300fc51556ad3a03aacfb1 Mon Sep 17 00:00:00 2001
|
||||
From 3f0a5b795917411e3c303f2ec75e620d37f6f1d5 Mon Sep 17 00:00:00 2001
|
||||
From: Aikar <aikar@aikar.co>
|
||||
Date: Sun, 16 Sep 2018 00:00:16 -0400
|
||||
Subject: [PATCH] Optimize and Fix ExpiringMap Issues
|
||||
@ -310,10 +310,10 @@ index 38c0201ac..ae271a57f 100644
|
||||
co.aikar.timings.TimingsManager.FULL_SERVER_TICK.stopTiming(); // Paper
|
||||
}
|
||||
diff --git a/src/main/java/org/bukkit/craftbukkit/generator/CustomChunkGenerator.java b/src/main/java/org/bukkit/craftbukkit/generator/CustomChunkGenerator.java
|
||||
index 4cca65666..9c917370a 100644
|
||||
index 23f4e24ce..9e553866e 100644
|
||||
--- a/src/main/java/org/bukkit/craftbukkit/generator/CustomChunkGenerator.java
|
||||
+++ b/src/main/java/org/bukkit/craftbukkit/generator/CustomChunkGenerator.java
|
||||
@@ -144,7 +144,7 @@ public class CustomChunkGenerator extends InternalChunkGenerator<GeneratorSettin
|
||||
@@ -159,7 +159,7 @@ public class CustomChunkGenerator extends InternalChunkGenerator<GeneratorSettin
|
||||
@Override
|
||||
public Long2ObjectMap<StructureStart> getStructureStartCache(StructureGenerator<? extends WorldGenFeatureConfiguration> structuregenerator) {
|
||||
return (Long2ObjectMap) this.structureStartCache.computeIfAbsent(structuregenerator, (s) -> {
|
||||
@ -322,7 +322,7 @@ index 4cca65666..9c917370a 100644
|
||||
});
|
||||
}
|
||||
|
||||
@@ -154,7 +154,7 @@ public class CustomChunkGenerator extends InternalChunkGenerator<GeneratorSettin
|
||||
@@ -169,7 +169,7 @@ public class CustomChunkGenerator extends InternalChunkGenerator<GeneratorSettin
|
||||
@Override
|
||||
public Long2ObjectMap<LongSet> getStructureCache(StructureGenerator<? extends WorldGenFeatureConfiguration> structuregenerator) {
|
||||
return (Long2ObjectMap) this.structureCache.computeIfAbsent(structuregenerator, (s) -> {
|
||||
|
@ -1 +1 @@
|
||||
Subproject commit 0e1cea5a4a4b41004912ab7a8b2871349b1ef4a0
|
||||
Subproject commit f40143ef5e2215b15c08eac481517bd6a0cf7239
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren