Skip to content

fix: prevent entities from passing through locked portals#35

Merged
Keviro merged 2 commits intoversion/1.21.11from
fix/prevent-entities-trough-portals
Apr 2, 2026
Merged

fix: prevent entities from passing through locked portals#35
Keviro merged 2 commits intoversion/1.21.11from
fix/prevent-entities-trough-portals

Conversation

@TheBjoRedCraft
Copy link
Copy Markdown
Member

No description provided.

@TheBjoRedCraft TheBjoRedCraft self-assigned this Apr 2, 2026
Copilot AI review requested due to automatic review settings April 2, 2026 09:43
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates portal-lock enforcement so locked worlds block portal travel for entities, not just players.

Changes:

  • Switch portal listener logic to operate on entity-based portal events and cancel non-player portal attempts in locked worlds.
  • Align Canvas (async) portal handling with the same “cancel non-player entities” behavior.
  • Bump project snapshot version.

Reviewed changes

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

File Description
src/main/kotlin/dev/slne/surf/essentials/listener/WorldListener.kt Moves portal lock handling to an entity portal event and cancels non-player entity portal attempts.
src/main/kotlin/dev/slne/surf/essentials/listener/CanvasListener.kt Cancels non-player entity portal attempts when the destination world is locked.
gradle.properties Snapshot version bump.

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

@Keviro Keviro merged commit 737736b into version/1.21.11 Apr 2, 2026
@Keviro Keviro deleted the fix/prevent-entities-trough-portals branch April 2, 2026 23:16
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.

3 participants