9
0
mirror of https://github.com/HibiscusMC/HMCCosmetics.git synced 2026-01-06 15:51:50 +00:00

fix: mount packet has bad if test

This commit is contained in:
LoJoSho
2024-11-25 13:22:58 -06:00
parent 69d318c4b0
commit 667f58ff4b

View File

@@ -656,7 +656,8 @@ public class PlayerGameListener implements Listener {
MessagesUtil.sendDebugMessages("Mount Packet Sent - " + user.getUniqueId());
if (user.isInWardrobe()) return;
if (!user.hasCosmeticInSlot(CosmeticSlot.BACKPACK) && user.getUserBackpackManager() != null) return;
if (!user.hasCosmeticInSlot(CosmeticSlot.BACKPACK)) return;
if (user.getUserBackpackManager() == null) return;
// Basically, take the original passengers and "bump" them to the end of the list
int[] originalPassengers = event.getPacket().getIntegerArrays().read(0);