Skip to content

Commit c458742

Browse files
committed
respect CONFIG.PERSIST_BACK_LOCATION (in a more roundabout way...)
1 parent e50a18d commit c458742

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/main/java/com/fibermc/essentialcommands/playerdata/PlayerData.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,10 @@ public void initializeRuntimeState(ServerPlayerEntity player, File saveFile) {
164164
// Revoke any abilities that shouldn't persist
165165
Pal.revokeAbility(player, VanillaAbilities.INVULNERABLE, ECAbilitySources.SLEEP_INVULN);
166166

167+
if (!CONFIG.PERSIST_BACK_LOCATION) {
168+
this.previousLocation = null;
169+
}
170+
167171
updatePlayerEntity(player);
168172
}
169173

0 commit comments

Comments
 (0)