mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-29 12:27:59 +01:00
Remove unneeded UOE when copying biome sources (#7629)
This commit is contained in:
parent
dcbf48f33d
commit
59cf38febb
@ -10,6 +10,8 @@ Subject: [PATCH] CB fixes
|
|||||||
|
|
||||||
* Fixed method signature of Marker#addPassenger
|
* Fixed method signature of Marker#addPassenger
|
||||||
|
|
||||||
|
* Removed unneeded UOE in CustomWorldChunkManager (extends BiomeSource)
|
||||||
|
|
||||||
diff --git a/src/main/java/net/minecraft/server/level/ServerLevel.java b/src/main/java/net/minecraft/server/level/ServerLevel.java
|
diff --git a/src/main/java/net/minecraft/server/level/ServerLevel.java b/src/main/java/net/minecraft/server/level/ServerLevel.java
|
||||||
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
||||||
--- a/src/main/java/net/minecraft/server/level/ServerLevel.java
|
--- a/src/main/java/net/minecraft/server/level/ServerLevel.java
|
||||||
@ -60,6 +62,20 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
this.storageAccess = chunkIoWorker;
|
this.storageAccess = chunkIoWorker;
|
||||||
this.registryAccess = registryManager;
|
this.registryAccess = registryManager;
|
||||||
this.structureManager = structureManager;
|
this.structureManager = structureManager;
|
||||||
|
diff --git a/src/main/java/org/bukkit/craftbukkit/generator/CustomWorldChunkManager.java b/src/main/java/org/bukkit/craftbukkit/generator/CustomWorldChunkManager.java
|
||||||
|
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
||||||
|
--- a/src/main/java/org/bukkit/craftbukkit/generator/CustomWorldChunkManager.java
|
||||||
|
+++ b/src/main/java/org/bukkit/craftbukkit/generator/CustomWorldChunkManager.java
|
||||||
|
@@ -0,0 +0,0 @@ public class CustomWorldChunkManager extends BiomeSource {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public BiomeSource withSeed(long seed) {
|
||||||
|
- // TODO check method further
|
||||||
|
- throw new UnsupportedOperationException("Cannot copy CustomWorldChunkManager");
|
||||||
|
+ return this; // Paper - Since this doesn't take a seed, no need to throw UOE
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
diff --git a/src/main/java/org/bukkit/craftbukkit/util/permissions/CraftDefaultPermissions.java b/src/main/java/org/bukkit/craftbukkit/util/permissions/CraftDefaultPermissions.java
|
diff --git a/src/main/java/org/bukkit/craftbukkit/util/permissions/CraftDefaultPermissions.java b/src/main/java/org/bukkit/craftbukkit/util/permissions/CraftDefaultPermissions.java
|
||||||
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
||||||
--- a/src/main/java/org/bukkit/craftbukkit/util/permissions/CraftDefaultPermissions.java
|
--- a/src/main/java/org/bukkit/craftbukkit/util/permissions/CraftDefaultPermissions.java
|
||||||
|
Loading…
Reference in New Issue
Block a user