File tree Expand file tree Collapse file tree 1 file changed +1
-6
lines changed
interfaces/src/main/kotlin/com/noxcrew/interfaces Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -212,12 +212,6 @@ public class InterfacesListeners private constructor(private val plugin: Plugin)
212
212
213
213
/* * Closes the given [view] of a player interface. */
214
214
public fun closePlayerInterface (playerId : UUID , view : PlayerInterfaceView ? ) {
215
- // Save the contents of their currently shown inventory
216
- val bukkitPlayer = Bukkit .getPlayer(playerId)
217
- if (bukkitPlayer != null ) {
218
- saveInventoryContentsIfOpened(bukkitPlayer)
219
- }
220
-
221
215
abortQuery(playerId, view)
222
216
if (view == null ) {
223
217
backgroundPlayerInterfaceViews.invalidate(playerId)
@@ -423,6 +417,7 @@ public class InterfacesListeners private constructor(private val plugin: Plugin)
423
417
424
418
@EventHandler
425
419
public fun onPlayerQuit (event : PlayerQuitEvent ) {
420
+ // Save the contents of their currently shown inventory
426
421
abortQuery(event.player.uniqueId, null )
427
422
closePlayerInterface(event.player.uniqueId, null )
428
423
}
You can’t perform that action at this time.
0 commit comments