forked from SteamWar/SteamWar
Replace {nms} and {obc} tags
This commit is contained in:
@@ -32,7 +32,7 @@ public class SlowMoUtils {
|
||||
private static final Field field;
|
||||
public static final boolean freezeEnabled;
|
||||
|
||||
private static final Reflection.Method getWorldHandle = Reflection.getTypedMethod(Reflection.getClass("{obc}.CraftWorld"), "getHandle", null);
|
||||
private static final Reflection.Method getWorldHandle = Reflection.getTypedMethod(Reflection.getClass("org.bukkit.craftbukkit.CraftWorld"), "getHandle", null);
|
||||
private static boolean frozen = false;
|
||||
|
||||
private static final World world;
|
||||
@@ -40,7 +40,7 @@ public class SlowMoUtils {
|
||||
static {
|
||||
Field temp;
|
||||
try {
|
||||
temp = Reflection.getClass("{nms.server.level}.WorldServer").getField("freezed");
|
||||
temp = Reflection.getClass("net.minecraft.server.level.WorldServer").getField("freezed");
|
||||
} catch (NoSuchFieldException e) {
|
||||
temp = null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user