From 35edd95c875d0d285d407ebf6a148026254da387 Mon Sep 17 00:00:00 2001 From: Kenzie Togami Date: Mon, 5 Aug 2019 14:17:56 -0700 Subject: [PATCH] [Forge] Update to 28.0.45 for package rename --- worldedit-forge/build.gradle.kts | 2 +- .../main/java/com/sk89q/worldedit/forge/ThreadSafeCache.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/worldedit-forge/build.gradle.kts b/worldedit-forge/build.gradle.kts index 0d68dad28..1c952f5bc 100644 --- a/worldedit-forge/build.gradle.kts +++ b/worldedit-forge/build.gradle.kts @@ -13,7 +13,7 @@ applyShadowConfiguration() val minecraftVersion = "1.14.4" val mappingsMinecraftVersion = "1.14.3" -val forgeVersion = "28.0.34" +val forgeVersion = "28.0.45" configurations.all { resolutionStrategy { diff --git a/worldedit-forge/src/main/java/com/sk89q/worldedit/forge/ThreadSafeCache.java b/worldedit-forge/src/main/java/com/sk89q/worldedit/forge/ThreadSafeCache.java index 0cb76b0ef..e41af9c69 100644 --- a/worldedit-forge/src/main/java/com/sk89q/worldedit/forge/ThreadSafeCache.java +++ b/worldedit-forge/src/main/java/com/sk89q/worldedit/forge/ThreadSafeCache.java @@ -21,8 +21,8 @@ package com.sk89q.worldedit.forge; import net.minecraft.entity.player.ServerPlayerEntity; import net.minecraft.server.MinecraftServer; +import net.minecraftforge.event.TickEvent; import net.minecraftforge.eventbus.api.SubscribeEvent; -import net.minecraftforge.fml.common.gameevent.TickEvent; import net.minecraftforge.fml.server.ServerLifecycleHooks; import java.util.Collections; @@ -56,7 +56,7 @@ public class ThreadSafeCache { if (now - lastRefresh > REFRESH_DELAY) { Set onlineIds = new HashSet<>(); - + MinecraftServer server = ServerLifecycleHooks.getCurrentServer(); if (server == null) { return;