geforkt von Mirrors/Paper
Fix spawn egg equality check and copy constructor
By: md_5 <git@md-5.net>
Dieser Commit ist enthalten in:
Ursprung
cd2a1a6d7e
Commit
92a9fb31be
@ -111,6 +111,12 @@ public class CraftMetaSpawnEgg extends CraftMetaItem implements SpawnEggMeta {
|
|||||||
|
|
||||||
CraftMetaSpawnEgg(CraftMetaItem meta) {
|
CraftMetaSpawnEgg(CraftMetaItem meta) {
|
||||||
super(meta);
|
super(meta);
|
||||||
|
|
||||||
|
if (!(meta instanceof CraftMetaSpawnEgg egg)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
this.entityTag = egg.entityTag;
|
||||||
}
|
}
|
||||||
|
|
||||||
CraftMetaSpawnEgg(DataComponentPatch tag) {
|
CraftMetaSpawnEgg(DataComponentPatch tag) {
|
||||||
@ -167,7 +173,7 @@ public class CraftMetaSpawnEgg extends CraftMetaItem implements SpawnEggMeta {
|
|||||||
}
|
}
|
||||||
|
|
||||||
boolean isSpawnEggEmpty() {
|
boolean isSpawnEggEmpty() {
|
||||||
return entityTag != null;
|
return !(entityTag != null);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren