mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-26 10:57:47 +01:00
19de9af63c
Functional GUI fix added by billygalbreath
27 lines
1.2 KiB
Diff
27 lines
1.2 KiB
Diff
From 93548ddd969d1473484e7793511d8019c7d430ec 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 5b847bb3..6c9d313f 100644
|
|
--- a/src/main/java/org/bukkit/generator/ChunkGenerator.java
|
|
+++ b/src/main/java/org/bukkit/generator/ChunkGenerator.java
|
|
@@ -109,7 +109,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.0.windows.1
|
|
|