Skip to content

fix(script): read vanilla vibration flags in BlockVibrationPropertiesComponent - #386

Merged
NaySurGithub merged 1 commit into
devfrom
fix/script-vibration-properties
Nov 13, 2026
Merged

NaySurGithub merged 1 commit into
devfrom
fix/script-vibration-properties

Conversation

@NaySurGithub

Copy link
Copy Markdown
Contributor

What

BlockVibrationPropertiesComponent.getCanDampenVibrations / getCanOccludeVibrations read only a pack block's json, so vanilla wool and carpets answered false while the vibration system treats them as dampening (and wool as occluding).

The game reads one component for both: the script getters and the vibration listener/occlusion code call the same block component lookup (bit 0 dampen, bit 1 occlude, default off). The getters now use VibrationProperties::of, the flags the engine already uses.

How it was checked

26.60 Windows client: the two script getters and their callers' shared component lookup. Syntax-checked locally; ScriptBlockRecipeTests now checks wool (true:true) and white carpet (true:false).

AI disclosure

Written by Claude Opus 5.5 (claude-opus-5-5): research in the game client, code and tests.

@NaySurGithub
NaySurGithub merged commit 612d1b7 into dev Nov 13, 2026
8 checks passed
@NaySurGithub
NaySurGithub deleted the fix/script-vibration-properties branch November 13, 2026 22:15
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