mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-06-19 07:11:14 +00:00
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:
+2
-1
@@ -31,7 +31,8 @@ public class TerraMinestomExample {
|
||||
}
|
||||
|
||||
public void attachTerra() {
|
||||
world = TerraMinestomWorldBuilder.from(instance)
|
||||
TerraMinestomPlatform platform = new TerraMinestomPlatform();
|
||||
world = platform.worldBuilder(instance)
|
||||
.defaultPack()
|
||||
.attach();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user