Skip to content

chore: Add null-safety to IntervalShake#7527

Open
VICK-sys wants to merge 1 commit into
FunkinCrew:developfrom
VICK-sys:feature/nullsafety-IntervalShake
Open

chore: Add null-safety to IntervalShake#7527
VICK-sys wants to merge 1 commit into
FunkinCrew:developfrom
VICK-sys:feature/nullsafety-IntervalShake

Conversation

@VICK-sys
Copy link
Copy Markdown

@VICK-sys VICK-sys commented May 7, 2026

Linked Issues

Part of #4303

Description

Adds @:nullSafety (Loose mode) to funkin.effects.IntervalShake and resolves the resulting compile errors.

Behavior change worth flagging: previously, if object was null at the time of stop() or shakeProgress() running (e.g., if destroy() was called from a callback
mid-shake), the code would null-crash. With these guards, position updates are silently skipped instead. The original behavior was a latent bug; this is strictly safer.

Screenshots/Videos

Smoke-tested in-game with no visual regression. Capsule shake during rank slam works identically to develop:
https://github.com/user-attachments/assets/631be32e-897f-4813-a5d2-c239d4219b89

@github-actions github-actions Bot added size: huge A huge pull request with more than 500 changes. pr: haxe PR modifies game code. pr: documentation PR modifies documentation or README files. pr: github PR modifies GitHub metadata files. status: pending triage Awaiting review. and removed size: huge A huge pull request with more than 500 changes. labels May 7, 2026
@VICK-sys VICK-sys changed the base branch from main to develop May 7, 2026 07:14
@NotHyper-474 NotHyper-474 added size: medium A medium pull request with 100 or fewer changes. type: chore Involves minor adjustments that do not make functional changes. and removed pr: documentation PR modifies documentation or README files. pr: github PR modifies GitHub metadata files. labels May 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr: haxe PR modifies game code. size: medium A medium pull request with 100 or fewer changes. status: pending triage Awaiting review. type: chore Involves minor adjustments that do not make functional changes.

Development

Successfully merging this pull request may close these issues.

2 participants