Skip to content

Commit

Permalink
Fix class rename
Browse files Browse the repository at this point in the history
MaxNeedsSnacks committed Mar 2, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 8b493fa commit ad69d22
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -20,7 +20,7 @@
import net.neoforged.api.distmarker.Dist;
import net.neoforged.bus.api.EventPriority;
import net.neoforged.bus.api.IEventBus;
import net.neoforged.fml.IExtensionPoint;
import net.neoforged.fml.IExtensionPoint.DisplayTest;
import net.neoforged.fml.ModLoadingContext;
import net.neoforged.fml.common.Mod;
import net.neoforged.fml.event.lifecycle.FMLCommonSetupEvent;
@@ -31,7 +31,6 @@
import net.neoforged.neoforge.event.BuildCreativeModeTabContentsEvent;
import net.neoforged.neoforge.event.entity.living.LivingDropsEvent;
import net.neoforged.neoforge.event.entity.player.PlayerDestroyItemEvent;
import net.neoforged.neoforge.network.NetworkConstants;
import net.neoforged.neoforge.registries.RegisterEvent;

import java.util.AbstractMap;
@@ -56,7 +55,7 @@ public KubeJSEntryPoint(IEventBus bus) throws Throwable {
KubeJS.instance.setup();

if (CommonProperties.get().serverOnly) {
ModLoadingContext.get().registerExtensionPoint(IExtensionPoint.DisplayTest.class, () -> new IExtensionPoint.DisplayTest(() -> NetworkConstants.IGNORESERVERONLY, (a, b) -> true));
ModLoadingContext.get().registerExtensionPoint(DisplayTest.class, () -> new DisplayTest(() -> DisplayTest.IGNORESERVERONLY, (a, b) -> true));
}

NeoForge.EVENT_BUS.addListener(KubeJSEntryPoint::itemDestroyed);

0 comments on commit ad69d22

Please sign in to comment.