Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-18 12:30:06 +01:00
Clarify exception message for bad hanging location. Fixes BUKKIT-4824
This change adds the location and a more specific message to the IllegalArgumentException that gets thrown when a hanging entity is being spawned in a location that it cannot survive.
Dieser Commit ist enthalten in:
Ursprung
90e8aa008a
Commit
cfa5490a58
@ -999,7 +999,7 @@ public class CraftWorld implements World {
|
||||
}
|
||||
|
||||
if (entity != null && !((EntityHanging) entity).survives()) {
|
||||
entity = null;
|
||||
throw new IllegalArgumentException("Cannot spawn hanging entity for " + clazz.getName() + " at " + location);
|
||||
}
|
||||
} else if (TNTPrimed.class.isAssignableFrom(clazz)) {
|
||||
entity = new EntityTNTPrimed(world, x, y, z, null);
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren