Skip to content

Commit

Permalink
Remove unneeded addon definition for TeamPE
Browse files Browse the repository at this point in the history
  • Loading branch information
62832 committed Nov 12, 2024
1 parent 83abf1c commit 75eee81
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
1 change: 0 additions & 1 deletion src/main/java/gripe/_90/appliede/integration/Addons.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import net.minecraftforge.forgespi.language.IModInfo;

public enum Addons {
TEAMPE("teamprojecte"),
AE2WTLIB("ae2wtlib"),
AECAPFIX("aecapfix");

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,11 @@

import net.minecraftforge.common.MinecraftForge;
import net.minecraftforge.event.server.ServerStoppedEvent;
import net.minecraftforge.fml.ModList;
import net.minecraftforge.server.ServerLifecycleHooks;

import appeng.api.features.IPlayerRegistry;

import gripe._90.appliede.integration.Addons;

import cn.leomc.teamprojecte.TPTeam;
import cn.leomc.teamprojecte.TeamChangeEvent;
import moze_intel.projecte.api.capabilities.IKnowledgeProvider;
Expand Down Expand Up @@ -83,7 +82,7 @@ private void clear() {
}

static class Proxy {
private final Object handler = Addons.TEAMPE.isLoaded() ? new TeamProjectEHandler() : null;
private final Object handler = ModList.get().isLoaded("teamprojecte") ? new TeamProjectEHandler() : null;

boolean notSharingEmc(Map.Entry<UUID, Supplier<IKnowledgeProvider>> provider) {
return handler == null || ((TeamProjectEHandler) handler).notSharingEmc(provider);
Expand Down

0 comments on commit 75eee81

Please sign in to comment.