Skip to content

Fix vehicles properly this time hopefully - #57

Merged
Cubicake merged 10 commits into
mainfrom
fix-vehicles-again
Jun 7, 2026
Merged

Fix vehicles properly this time hopefully#57
Cubicake merged 10 commits into
mainfrom
fix-vehicles-again

Conversation

@Cubicake

@Cubicake Cubicake commented Jun 7, 2026

Copy link
Copy Markdown
Owner

No description provided.

@Cubicake Cubicake self-assigned this Jun 7, 2026
Copilot AI review requested due to automatic review settings June 7, 2026 08:09
@Cubicake Cubicake linked an issue Jun 7, 2026 that may be closed by this pull request

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adjusts passenger/vehicle reconciliation so passenger relationships can be resolved when entities become known (to better handle out-of-order spawn vs. passenger packets), along with a few build/version and logging tweaks.

Changes:

  • Refactors passenger tracking to store unresolved vehicle↔passenger relationships in NettyData and reconcile them on entity insertion/destruction.
  • Switches passenger list handling to fastutil IntArrayList to avoid boxing and support the new reconciliation flow.
  • Minor updates: bump module versions, adjust deprecated debug logging verbosity, and ignore .gradle-user/.

Reviewed changes

Copilot reviewed 8 out of 9 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
platform-paper/src/main/java/games/cubi/raycastedantiesp/paper/PaperLoggerAdapter.java Makes deprecated debug() logs least-important (level 10) to reduce default log noise.
platform-paper/build.gradle.kts Bumps platformPaperVersion.
packetevents/src/main/java/games/cubi/raycastedantiesp/packetevents/viewcontrollers/PacketEventsEntityViewController.java Updates passenger packet sending to use IntArrayList and triggers passenger reconciliation on insert.
packetevents/build.gradle.kts Adds fastutil compileOnly dependency.
core/src/main/java/games/cubi/raycastedantiesp/core/view/controller/PassengerReconciliationTask.java Removes old post-spawn retry task approach for passenger reconciliation.
core/src/main/java/games/cubi/raycastedantiesp/core/view/controller/PacketEntityViewController.java Implements new passenger reconciliation flow, stale-reference cleanup, and destroy-time cleanup; updates passenger packet abstraction to IntArrayList.
core/src/main/java/games/cubi/raycastedantiesp/core/players/NettyData.java Adds unresolved passenger state maps (vehicle→passengers, passenger→vehicle) and clears them on reset.
core/build.gradle.kts Bumps coreVersion.
.gitignore Ignores .gradle-user/.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

return;
}
WrapperPlayServerSetPassengers packet = new WrapperPlayServerSetPassengers(vehicle, passengers.stream().mapToInt(Integer::intValue).toArray());
WrapperPlayServerSetPassengers packet = new WrapperPlayServerSetPassengers(vehicle, passengers.elements());
Comment on lines +13 to 16
import it.unimi.dsi.fastutil.ints.IntArrayList;

import java.util.ArrayList;
import java.util.UUID;

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 8 out of 9 changed files in this pull request and generated 1 comment.

Comment on lines +13 to 16
import it.unimi.dsi.fastutil.ints.IntArrayList;

import java.util.ArrayList;
import java.util.UUID;
@Cubicake
Cubicake merged commit d3da22d into main Jun 7, 2026
1 check passed
@Cubicake
Cubicake deleted the fix-vehicles-again branch June 7, 2026 09:58
@Cubicake Cubicake mentioned this pull request Jun 9, 2026
9 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[v2] Properly model vehicles

2 participants