fix: allow offhand crystal placement through walls #18
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
6b6t/NoCheatPlus!18
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/crystal-raytrace-offhand"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Allows only the empty main-hand no-op to pass when an off-hand end crystal targets obsidian or bedrock, so the off-hand placement event reaches the visibility exemption. Adds same-tick visibility checks that cancel sweep damage from a through-wall crystal hit. Adds focused unit tests for hand/material scope and the sweep tick marker.
Verification:
wt/compile.shpassed; Mac Fox slot A confirmed off-hand crystal placement with empty, sword, and cobblestone main hands, while cobblestone was not placed and chest interaction remained blocked. The lab damage listener saw explosion events but no ENTITY_SWEEP_ATTACK in either crystal trial, so the sweep behavior could not be validated there.AI disclosure: Codex, qbasty poll 23.
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Share