Hold onto ServerImplementation instance (#149)

This commit is contained in:
SirSalad
2023-06-15 09:18:08 -04:00
committed by GitHub
parent c2710459c8
commit 64525691a8

View File

@@ -6,8 +6,10 @@ import me.SuperRonanCraft.BetterRTP.BetterRTP;
public class FoliaHandler {
private static final ServerImplementation SERVER_IMPLEMENTATION = new FoliaLib(BetterRTP.getInstance()).getImpl();
public static ServerImplementation get() {
return new FoliaLib(BetterRTP.getInstance()).getImpl();
return SERVER_IMPLEMENTATION;
}
}