mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-06 16:27:48 +01:00
Fix spawn eggs with no entity creating invalid stacks and disconnect creative clients
Example: /give @s minecraft:cat_spawn_egg[minecraft:max_stack_size=1,minecraft:max_damage=100,minecraft:damage=10] 1 By: md_5 <git@md-5.net>
This commit is contained in:
parent
b365899587
commit
cd2a1a6d7e
@ -151,10 +151,6 @@ public class CraftMetaSpawnEgg extends CraftMetaItem implements SpawnEggMeta {
|
|||||||
void applyToItem(CraftMetaItem.Applicator tag) {
|
void applyToItem(CraftMetaItem.Applicator tag) {
|
||||||
super.applyToItem(tag);
|
super.applyToItem(tag);
|
||||||
|
|
||||||
if (!isSpawnEggEmpty() && entityTag == null) {
|
|
||||||
entityTag = new NBTTagCompound();
|
|
||||||
}
|
|
||||||
|
|
||||||
if (entityTag != null) {
|
if (entityTag != null) {
|
||||||
tag.put(ENTITY_TAG, CustomData.of(entityTag));
|
tag.put(ENTITY_TAG, CustomData.of(entityTag));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user