diff options
author | Zach Brown <[email protected]> | 2019-10-02 21:43:46 -0500 |
---|---|---|
committer | Zach Brown <[email protected]> | 2019-10-02 21:43:46 -0500 |
commit | 3398704d7f25f1efa91b06f5f211571706afd3da (patch) | |
tree | 86badf8234938d5ede9b9a041813efe5e476ee44 | |
parent | aa776c1b151b0dfc287ad542a42ab90518b7539c (diff) | |
download | Paper-3398704d7f25f1efa91b06f5f211571706afd3da.tar.gz Paper-3398704d7f25f1efa91b06f5f211571706afd3da.zip |
Name the specific plugin generator class that isn't updated
Makes it easier to figure out which custom generator plugin hasn't been
updated to a specific version and is spamming you with
UnsupportedOperationExceptions
-rw-r--r-- | Spigot-API-Patches/0185-Name-the-specific-custom-world-gen-plugin-class-that.patch | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/Spigot-API-Patches/0185-Name-the-specific-custom-world-gen-plugin-class-that.patch b/Spigot-API-Patches/0185-Name-the-specific-custom-world-gen-plugin-class-that.patch new file mode 100644 index 0000000000..fa3083726c --- /dev/null +++ b/Spigot-API-Patches/0185-Name-the-specific-custom-world-gen-plugin-class-that.patch @@ -0,0 +1,26 @@ +From 33d30a4d9fb9124f46d6bac21f5f8d6f7fbb2ff7 Mon Sep 17 00:00:00 2001 +From: Zach Brown <[email protected]> +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 9a18a05b..ccac5710 100644 +--- a/src/main/java/org/bukkit/generator/ChunkGenerator.java ++++ b/src/main/java/org/bukkit/generator/ChunkGenerator.java +@@ -76,7 +76,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.23.0 + |