Pre-Issue Checklist
Environment
| Name |
Value |
| Terra Version |
6.6.6-BETA+451683aff |
| Platform / Platform Version |
Paper |
| Any External Plugins or Mods |
Terra spark |
| Terra Packs In Use |
None |
| Terra Addons In Use |
None |
Issue Description
Frequently loading and unloading different worlds
Steps to reproduce
- Load a world that has not been loaded before
- Unload the world
- Repeat steps 1 to 2
Expected behavior
World objects can be normally reclaimed.
Actual behavior
|
private static final Set<World> INJECTED = new HashSet<>(); |
The world is added to this Set during initialisation and remains there after unloading, preventing its removal and thus hindering its reclaiming.
Full stacktrace
None
Additional details
None
Pre-Issue Checklist
closed ones.
is Terra that is causing the issue.
pack I am using.
latest.logfileEnvironment
Issue Description
Frequently loading and unloading different worlds
Steps to reproduce
Expected behavior
World objects can be normally reclaimed.
Actual behavior
Terra/platforms/bukkit/nms/src/main/java/com/dfsek/terra/bukkit/nms/NMSInjectListener.java
Line 25 in c6eb2f4
The world is added to this Set during initialisation and remains there after unloading, preventing its removal and thus hindering its reclaiming.
Full stacktrace
None
Additional details
None