2020-04-02 23:07:06 +02:00
|
|
|
From 0726ea2828fb2a6d9eb5547abf7a71f5fc101c56 Mon Sep 17 00:00:00 2001
|
2019-10-03 04:43:46 +02:00
|
|
|
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
|
2020-02-02 12:53:48 +01:00
|
|
|
index 70f20fb64..59138238b 100644
|
2019-10-03 04:43:46 +02:00
|
|
|
--- a/src/main/java/org/bukkit/generator/ChunkGenerator.java
|
|
|
|
+++ b/src/main/java/org/bukkit/generator/ChunkGenerator.java
|
2020-02-02 12:53:48 +01:00
|
|
|
@@ -114,7 +114,10 @@ public abstract class ChunkGenerator {
|
2019-10-03 04:43:46 +02:00
|
|
|
*/
|
|
|
|
@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
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
--
|
2020-04-02 23:07:06 +02:00
|
|
|
2.25.1
|
2019-10-03 04:43:46 +02:00
|
|
|
|