diff --git a/src/main/java/com/github/hhhzzzsss/songplayer/playing/SongHandler.java b/src/main/java/com/github/hhhzzzsss/songplayer/playing/SongHandler.java index 81df828..783c75c 100644 --- a/src/main/java/com/github/hhhzzzsss/songplayer/playing/SongHandler.java +++ b/src/main/java/com/github/hhhzzzsss/songplayer/playing/SongHandler.java @@ -92,6 +92,7 @@ public class SongHandler { loaderThread = null; } + // Run cached command if timeout reached checkCommandCache(); // Check if no song is playing and, if necessary, handle cleanup @@ -116,6 +117,9 @@ public class SongHandler { if (!Config.getConfig().showFakePlayer && SongPlayer.fakePlayer != null) { SongPlayer.removeFakePlayer(); } + if (SongPlayer.fakePlayer != null) { + SongPlayer.fakePlayer.getInventory().clone(SongPlayer.MC.player.getInventory()); + } SongPlayer.MC.player.getAbilities().allowFlying = true; wasFlying = SongPlayer.MC.player.getAbilities().flying;