Skip to content

Commit

Permalink
🔥 删除旧的合成表API
Browse files Browse the repository at this point in the history
  • Loading branch information
1024-byteeeee committed Sep 26, 2024
1 parent 9555021 commit f246f78
Show file tree
Hide file tree
Showing 37 changed files with 0 additions and 896 deletions.
20 changes: 0 additions & 20 deletions common.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -84,20 +84,6 @@ if (mcVersion >= 12005) {
}
JavaVersion MIXIN_COMPATIBILITY_LEVEL = JAVA_VERSION

def COMPAT_RECIPES_ITEM_ID
if (mcVersion >= 12005) {
COMPAT_RECIPES_ITEM_ID = "id"
} else {
COMPAT_RECIPES_ITEM_ID = "item"
}

def COMPAT_RECIPES_PATH
if (mcVersion >= 12100) {
COMPAT_RECIPES_PATH = "assets/carpetamsaddition/AmsRecipeTweakPack/ams/recipe/*.json"
} else {
COMPAT_RECIPES_PATH = "assets/carpetamsaddition/AmsRecipeTweakPack/ams/recipes/*.json"
}

String versionSuffix = ''
// detect github action environment variables
// https://docs.github.com/en/actions/learn-github-actions/environment-variables#default-environment-variables
Expand Down Expand Up @@ -132,12 +118,6 @@ processResources {
text -> text.replace("/*JAVA_VERSION*/", "JAVA_${MIXIN_COMPATIBILITY_LEVEL.ordinal() + 1}")
}
}

filesMatching(COMPAT_RECIPES_PATH) {
filter {
text -> text.replace("/*ams_recipes_item_id*/", COMPAT_RECIPES_ITEM_ID)
}
}
}

java {
Expand Down
2 changes: 0 additions & 2 deletions src/main/java/club/mcams/carpet/AmsServer.java
Original file line number Diff line number Diff line change
Expand Up @@ -143,15 +143,13 @@ public void onServerLoaded(MinecraftServer server) {
@Override
public void onServerClosed(MinecraftServer server) {
FancyFakePlayerNameTeamController.removeBotTeam(server, AmsServerSettings.fancyFakePlayerName);
// CraftingRuleUtil.clearAmsDatapacks(server);
}

@Override
public void onServerLoadedWorlds(MinecraftServer server) {
RecipeRuleHelper.onServerLoadedWorlds(server);
FancyFakePlayerNameTeamController.removeBotTeam(server, AmsServerSettings.fancyFakePlayerName);
AutoCleaner.removeAmsDataFolder(server);
// CraftingRuleUtil.loadAmsDatapacks(server);
}

@Override
Expand Down
37 changes: 0 additions & 37 deletions src/main/java/club/mcams/carpet/settings/CraftingRule.java

This file was deleted.

Loading

0 comments on commit f246f78

Please sign in to comment.