mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-09 11:44:19 +01:00
Make setPersistent also control player saving
By: Ugleh <troti@ymail.com>
This commit is contained in:
parent
b7719b7e4a
commit
9961f89c88
1 changed files with 4 additions and 3 deletions
|
@ -197,9 +197,10 @@ public interface Entity extends Metadatable, CommandSender, Nameable {
|
||||||
* By default all entities are persistent. An entity will also not get
|
* By default all entities are persistent. An entity will also not get
|
||||||
* persisted, if it is riding an entity that is not persistent.
|
* persisted, if it is riding an entity that is not persistent.
|
||||||
* <p>
|
* <p>
|
||||||
* The persistent flag has no effect on players. If a player is directly or
|
* The persistent flag on players controls whether or not to save their
|
||||||
* indirectly riding a non-persistent entity, the vehicle at the root and
|
* playerdata file when they quit. If a player is directly or indirectly
|
||||||
* all its passengers won't get persisted.
|
* riding a non-persistent entity, the vehicle at the root and all its
|
||||||
|
* passengers won't get persisted.
|
||||||
* <p>
|
* <p>
|
||||||
* <b>This should not be confused with
|
* <b>This should not be confused with
|
||||||
* {@link LivingEntity#setRemoveWhenFarAway(boolean)} which controls
|
* {@link LivingEntity#setRemoveWhenFarAway(boolean)} which controls
|
||||||
|
|
Loading…
Reference in a new issue