Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-16 11:30:06 +01:00
e4d10a6d67
Upstream has released updates that appears to apply and compile correctly. This update has not been tested by PaperMC and as with ANY update, please do your own testing Bukkit Changes: 122289ff Add FaceAttachable interface to handle Grindstone facing in common with Switches a6db750e SPIGOT-5647: ZombieVillager entity should have getVillagerType() CraftBukkit Changes:bbe3d58e
SPIGOT-5650: Lectern.setPage(int) causes a NullPointerException3075579f
Add FaceAttachable interface to handle Grindstone facing in common with Switches95bd4238
SPIGOT-5647: ZombieVillager entity should have getVillagerType()4d975ac3
SPIGOT-5617: setBlockData does not work when NotPlayEvent is called by redstone current
27 Zeilen
1.2 KiB
Diff
27 Zeilen
1.2 KiB
Diff
From 0726ea2828fb2a6d9eb5547abf7a71f5fc101c56 Mon Sep 17 00:00:00 2001
|
|
From: Zach Brown <zach@zachbr.io>
|
|
Date: Wed, 2 Oct 2019 21:24:28 -0500
|
|
Subject: [PATCH] Name the specific custom world gen plugin class that throws a
|
|
UOE
|
|
|
|
|
|
diff --git a/src/main/java/org/bukkit/generator/ChunkGenerator.java b/src/main/java/org/bukkit/generator/ChunkGenerator.java
|
|
index 70f20fb64..59138238b 100644
|
|
--- a/src/main/java/org/bukkit/generator/ChunkGenerator.java
|
|
+++ b/src/main/java/org/bukkit/generator/ChunkGenerator.java
|
|
@@ -114,7 +114,10 @@ public abstract class ChunkGenerator {
|
|
*/
|
|
@NotNull
|
|
public ChunkData generateChunkData(@NotNull World world, @NotNull Random random, int x, int z, @NotNull BiomeGrid biome) {
|
|
- throw new UnsupportedOperationException("Custom generator is missing required method generateChunkData");
|
|
+ // Paper start - More helpful custom chunk gen exceptions
|
|
+ final String generatorClass = world.getGenerator() != null ? world.getGenerator().getClass().getName() : "null";
|
|
+ throw new UnsupportedOperationException("Custom generator is missing required method generateChunkData: " + generatorClass);
|
|
+ // Paper end
|
|
}
|
|
|
|
/**
|
|
--
|
|
2.25.1
|
|
|