mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-01 20:52:12 -07:00
Allow getAsString()
-ing non-persistent entities (#12424)
This commit is contained in:
@@ -948,7 +948,7 @@ public abstract class CraftEntity implements org.bukkit.entity.Entity {
|
|||||||
@Override
|
@Override
|
||||||
public String getAsString() {
|
public String getAsString() {
|
||||||
CompoundTag tag = new CompoundTag();
|
CompoundTag tag = new CompoundTag();
|
||||||
if (!this.getHandle().saveAsPassenger(tag, false, false, false)) {
|
if (!this.getHandle().saveAsPassenger(tag, false, true, true)) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user