Small fix for future versions of minecraft

This commit is contained in:
Frank van der Heijden 2020-12-21 16:54:46 +01:00
parent 8a855d6935
commit 398f5ec1bb
No known key found for this signature in database
GPG key ID: 26DA56488D314D11

View file

@ -31,7 +31,7 @@ public class RDedicatedServer {
if (MinecraftReflectionVersion.MINOR >= 13) {
Object propertyManager;
if (MinecraftReflectionVersion.MINOR >= 16 && MinecraftReflectionVersion.PATCH >= 2) {
if (MinecraftReflectionVersion.isMin(16, 2)) {
propertyManager = RDedicatedServerSettings.newInstance(reflection.invoke(console, "getCustomRegistry"),
options);
} else {