Skip to content

Commit

Permalink
feat: disable on 1.21
Browse files Browse the repository at this point in the history
  • Loading branch information
ybw0014 committed Nov 28, 2024
1 parent 545f192 commit 3bc6d36
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/main/java/net/guizhanss/fastmachines/FastMachines.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@

import com.google.common.base.Preconditions;

import net.guizhanss.guizhanlib.minecraft.utils.MinecraftVersionUtil;

import org.bukkit.plugin.Plugin;

import io.github.thebusybiscuit.slimefun4.libraries.dough.updater.BlobBuildUpdater;
Expand Down Expand Up @@ -79,6 +81,14 @@ protected void load() {

@Override
public void enable() {
if (MinecraftVersionUtil.isAtLeast(21)) {
getLogger().severe("FastMachines is not compatible with Minecraft 1.21 and above.");
getLogger().severe("We are rewriting the recipe system to handle 1.21 changes,");
getLogger().severe("subscribe to the Addon Community announcement channel to get the latest news.");
getServer().getPluginManager().disablePlugin(this);
return;
}

log(Level.INFO, "====================");
log(Level.INFO, " FastMachines ");
log(Level.INFO, " by ybw0014 ");
Expand Down

0 comments on commit 3bc6d36

Please sign in to comment.