Skip to content

Commit

Permalink
Fixed: #8
Browse files Browse the repository at this point in the history
  • Loading branch information
Bram1903 committed Apr 30, 2024
1 parent fdc6d95 commit eba1503
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,8 @@ private void handleEntityMetadata(WrapperPlayServerEntityMetadata packet, User u

private void handleSetPassengers(WrapperPlayServerSetPassengers packet, User user) {
int entityId = packet.getEntityId();
if (entityId == user.getEntityId()) return;

int[] passengers = packet.getPassengers();

if (passengers.length > 0) {
Expand All @@ -154,6 +156,8 @@ private void handleSetPassengers(WrapperPlayServerSetPassengers packet, User use

private void handleAttachEntity(WrapperPlayServerAttachEntity packet, User user) {
int entityId = packet.getHoldingId();
if (entityId == user.getEntityId()) return;

int passengerId = packet.getAttachedId();

if (entityId > 0) {
Expand Down

0 comments on commit eba1503

Please sign in to comment.