Closed mcchampions closed 3 months ago
Your Pull Request was automatically labelled as: "✨ Fix" Thank you for contributing to this project! ❤️
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!
Description
Fix #4216
Proposed changes
Make the value oftickingLocations
thread-safenew HashSet() -> Collections.newSetFromMap(new ConcurrentHashMap<>())Initialize a new HashSet on read time to avoid exceptions
Related Issues (if applicable)
4216
Checklist
Nonnull
andNullable
annotations to my methods to indicate their behaviour for null values