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
968 stars 543 forks source link

Fix #4216 #4218

Closed mcchampions closed 3 months ago

mcchampions commented 3 months ago

Description

Fix #4216

Proposed changes

Make the value of tickingLocations thread-safe

new HashSet() -> Collections.newSetFromMap(new ConcurrentHashMap<>())

Initialize a new HashSet on read time to avoid exceptions

Related Issues (if applicable)

4216

Checklist

github-actions[bot] commented 3 months ago

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

github-actions[bot] commented 3 months ago

Slimefun preview build

A Slimefun preview build is available for testing! Commit: 4ffef583

https://preview-builds.walshy.dev/download/Slimefun/4218/4ffef583

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!