Skip to content

Commit

Permalink
Fix spawn eggs with no entity creating invalid stacks and disconnect …
Browse files Browse the repository at this point in the history
…creative clients

Example: /give @s minecraft:cat_spawn_egg[minecraft:max_stack_size=1,minecraft:max_damage=100,minecraft:damage=10] 1
  • Loading branch information
md-5 committed Jun 10, 2024
1 parent 3b6093b commit ab59e84
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -151,10 +151,6 @@ void serializeInternal(Map<String, NBTBase> internalTags) {
void applyToItem(CraftMetaItem.Applicator tag) {
super.applyToItem(tag);

if (!isSpawnEggEmpty() && entityTag == null) {
entityTag = new NBTTagCompound();
}

if (entityTag != null) {
tag.put(ENTITY_TAG, CustomData.of(entityTag));
}
Expand Down

0 comments on commit ab59e84

Please sign in to comment.