Skip to content

1.21.11 compat - #2306

Closed
The-Hypnos wants to merge 6 commits into
EngineHub:version/7.0.xfrom
CozyClient:1.21.11-compat
Closed

The-Hypnos wants to merge 6 commits into
EngineHub:version/7.0.xfrom
CozyClient:1.21.11-compat

Conversation

@The-Hypnos

Copy link
Copy Markdown

No description provided.

setFlag() legitimately returns null when a StateFlag is parsed from
"none" (clearing the flag), but the caller unconditionally called
.toString() on the result.

Fixes EngineHub#2305
event.getBlock() can throw when its underlying Location's world no
longer resolves, on some platforms. Guard both listeners against it
instead of letting it spam the console.

Fixes EngineHub#2238
Calendar.MONTH is 0-indexed (January = 0); the %m log path token
needs it 1-indexed.

Fixes EngineHub#1280
RemoveCause.PHYSICS (e.g. a boat colliding with the hanging entity)
wasn't handled at all - only EXPLOSION was - so entity-item-frame-destroy,
entity-painting-destroy, and their global config equivalents never
applied to that removal path.

Fixes EngineHub#1434
Canvas doesn't fire the vanilla PlayerTeleportEvent for entity-driven
teleports (confirmed via Canvas's own docs and live testing - zero
event delivery for any teleport cause on this platform), so the
ENDERPEARL/CHORUS_TELEPORT flags were silently unenforced. Add a
listener for Canvas's own EntityTeleportAsyncEvent instead, only
registered when that class is actually present at runtime, so it has
no effect on non-Canvas platforms.

Fixes EngineHub#2302
Both are consumed from the player's inventory before the teleport
event fires (on throw / on eating respectively), so denying the
teleport was leaving the player down an item for nothing. Skipped in
creative mode, matching the existing pattern for XP bottles in
EventAbstractionListener#onExpBottle.
@The-Hypnos The-Hypnos closed this Sep 16, 2026
@The-Hypnos
The-Hypnos deleted the 1.21.11-compat branch September 16, 2026 23:45
@The-Hypnos
The-Hypnos restored the 1.21.11-compat branch September 16, 2026 23:49
@The-Hypnos

Copy link
Copy Markdown
Author

accident didn't mean to merge

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.

1 participant