1
0
mirror of https://github.com/PaperMC/Paper.git synced 2025-08-12 18:55:51 -07:00

Allow getAsString()-ing non-persistent entities ()

This commit is contained in:
Illia Bondar
2025-04-14 10:00:24 +03:00
committed by GitHub
parent 8f62e0fb31
commit 652cea57e8

@@ -948,7 +948,7 @@ public abstract class CraftEntity implements org.bukkit.entity.Entity {
@Override
public String getAsString() {
CompoundTag tag = new CompoundTag();
if (!this.getHandle().saveAsPassenger(tag, false, false, false)) {
if (!this.getHandle().saveAsPassenger(tag, false, true, true)) {
return null;
}