geforkt von Mirrors/Paper
e8c82f4eee
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: 0399d9d6 SPIGOT-5341: Add Material.isAir 547f5709 SPIGOT-5353: Expand explosion API by adding source entity CraftBukkit Changes:7deb3728
SPIGOT-5309: Call cancelled EntityDamageEvent when damaging invisible armor stands46351e17
SPIGOT-5341: Add Material.isAir683bae06
SPIGOT-5342: Lore lost when deserializing items with no version storedc2d12011
SPIGOT-5353: Expand explosion API by adding source entity
27 Zeilen
1.2 KiB
Diff
27 Zeilen
1.2 KiB
Diff
From 2db66ce160d3196ba61e28518479a0a679dc0274 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 dd0123338..3fe6a22e0 100644
|
|
--- a/src/main/java/org/bukkit/generator/ChunkGenerator.java
|
|
+++ b/src/main/java/org/bukkit/generator/ChunkGenerator.java
|
|
@@ -84,7 +84,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
|
|
|