refactor(minestom): replace static singleton access to platform with dependency injection for better modularity

Renamed `MinestomPlatform` to `TerraMinestomPlatform` and updated `TerraMinestomWorldBuilder` to utilize the platform instance directly. Simplified world builder initialization and improved code clarity.
This commit is contained in:
Christian Bergschneider
2025-05-27 22:58:16 +02:00
parent d97fb4ff7b
commit 1dd59c378e
3 changed files with 34 additions and 28 deletions
@@ -31,7 +31,8 @@ public class TerraMinestomExample {
}
public void attachTerra() {
world = TerraMinestomWorldBuilder.from(instance)
TerraMinestomPlatform platform = new TerraMinestomPlatform();
world = platform.worldBuilder(instance)
.defaultPack()
.attach();
}