3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-11-16 04:50:05 +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:
Wesley Wolfe 2013-10-05 13:21:15 -05:00
Ursprung 90e8aa008a
Commit cfa5490a58

Datei anzeigen

@ -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);