Slimefun / Slimefun4

Slimefun 4 - A unique Spigot/Paper plugin that looks and feels like a modpack. We've been giving you backpacks, jetpacks, reactors and much more since 2013.
GNU General Public License v3.0
961 stars 549 forks source link

Fixes NPE when interacting with air #4089

Closed WalshyDev closed 8 months ago

WalshyDev commented 8 months ago

Description

Small bug in the latest change causes an NPE if interacting with air.

Proposed changes

Add a null check before we check for pending deletion.

Related Issues (if applicable)

https://paste.walshy.dev/IwsWtVpt568o

Checklist

github-actions[bot] commented 8 months ago

Your Pull Request was automatically labelled as: "✨ Fix" Thank you for contributing to this project! ❤️

sonarcloud[bot] commented 8 months ago

Quality Gate Passed Quality Gate passed

The SonarCloud Quality Gate passed, but some issues were introduced.

3 New issues
0 Security Hotspots
80.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud

github-actions[bot] commented 8 months ago

Slimefun preview build

A Slimefun preview build is available for testing! Commit: 34beb766

https://preview-builds.walshy.dev/download/Slimefun/4089/34beb766

Note: This is not a supported build and is only here for the purposes of testing. Do not run this on a live server and do not report bugs anywhere but this PR!