3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-12-18 04:20:08 +01:00

SPIGOT-3605: Spawn eggs not saving internal data

Dieser Commit ist enthalten in:
md_5 2017-10-09 18:32:45 +11:00
Ursprung 6733aa5635
Commit 9ab758c7b6

Datei anzeigen

@ -6,6 +6,7 @@ import java.util.Map;
import net.minecraft.server.DataConverterTypes;
import net.minecraft.server.MinecraftKey;
import net.minecraft.server.MinecraftServer;
import net.minecraft.server.NBTBase;
import net.minecraft.server.NBTTagCompound;
import org.bukkit.Material;
import org.bukkit.configuration.serialization.DelegateDeserialization;
@ -66,6 +67,13 @@ public class CraftMetaSpawnEgg extends CraftMetaItem implements SpawnEggMeta {
}
}
@Override
void serializeInternal(Map<String, NBTBase> internalTags) {
if (entityTag != null) {
internalTags.put(ENTITY_TAG.NBT, entityTag);
}
}
@Override
void applyToItem(NBTTagCompound tag) {
super.applyToItem(tag);