9
0
mirror of https://github.com/HibiscusMC/HibiscusCommons.git synced 2025-12-19 15:09:26 +00:00

Revert "fix: make mount packet sending sync to prevent problems with the backpack staying on the player"

This reverts commit 3c107b51ca.
This commit is contained in:
Logan
2025-10-11 22:04:30 -05:00
parent 3c107b51ca
commit 867ce2e939
14 changed files with 6 additions and 97 deletions

View File

@@ -30,10 +30,4 @@ public class NMSCommon {
}
});
}
public void sendPacketSync(@NotNull Player player, @NotNull Packet packet) {
ServerPlayer serverPlayer = ((CraftPlayer) player).getHandle();
ServerPlayerConnection connection = serverPlayer.connection;
connection.send(packet);
}
}

View File

@@ -285,7 +285,7 @@ public class NMSPackets extends NMSCommon implements me.lojosho.hibiscuscommons.
fakeNmsEntity.passengers = ImmutableList.copyOf(passengers);
ClientboundSetPassengersPacket packet = new ClientboundSetPassengersPacket(fakeNmsEntity);
fakeNmsEntity.passengers = ImmutableList.of();
for (Player p : sendTo) sendPacketSync(p, packet);
for (Player p : sendTo) sendPacket(p, packet);
}
@Override