Skip to content

Implement tridents - #1342

Open
Superomarking wants to merge 7 commits into
df-mc:masterfrom
Superomarking:item/tridents
Open

Implement tridents#1342
Superomarking wants to merge 7 commits into
df-mc:masterfrom
Superomarking:item/tridents

Conversation

@Superomarking

Copy link
Copy Markdown
Contributor

This PR aims to fully implement tridents, needs testing.

Copilot AI review requested due to automatic review settings July 22, 2026 19:02

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@RestartFU RestartFU left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Inline findings attached.

Comment thread server/session/handler_player_auth_input.go Outdated
Comment thread server/entity/trident.go
}
if conf.Item.Empty() {
conf.Item = item.NewStack(item.Trident{}, 1)
}

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

[P1] Persisted tridents are rebuilt without Owner or the returning state, so a chunk unload/restart breaks Loyalty; a stuck loyalty trident then reaches b.conf.Owner.Entity(...) with a nil handle and panics, while a returning one no longer returns. Persist a resolvable owner/return state and make the owner lookups nil-safe.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

If anyone could help me with this would be appreciated!

Comment thread server/item/trident.go Outdated
Comment thread server/entity/trident.go
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.

4 participants