mirror of
https://hub.spigotmc.org/stash/scm/spigot/craftbukkit.git
synced 2025-08-21 05:44:33 +00:00
SPIGOT-5665: Improve loading spawn egg NBT
This commit is contained in:
parent
dec5df2632
commit
183139d41f
1 changed files with 9 additions and 0 deletions
|
@ -28,6 +28,15 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
@Nullable
|
@Nullable
|
||||||
|
@@ -195,7 +201,7 @@
|
||||||
|
t0.setCustomName(ichatbasecomponent);
|
||||||
|
}
|
||||||
|
|
||||||
|
- a(world, entityhuman, t0, nbttagcompound);
|
||||||
|
+ try { a(world, entityhuman, t0, nbttagcompound); } catch (Throwable t) { LOGGER.warn("Error loading spawn egg NBT", t); } // CraftBukkit - SPIGOT-5665
|
||||||
|
return t0;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -328,7 +334,7 @@
|
@@ -328,7 +334,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue