Skip to content

Commit

Permalink
🚧 尝试修复Publish系统可能存在分隔符问题
Browse files Browse the repository at this point in the history
  • Loading branch information
wendavid552 committed Jun 14, 2023
1 parent bbe27c6 commit a711ccb
Show file tree
Hide file tree
Showing 33 changed files with 2,298 additions and 2,301 deletions.
792 changes: 396 additions & 396 deletions src/main/java/club/mcams/carpet/AmsServer.java

Large diffs are not rendered by default.

96 changes: 48 additions & 48 deletions src/main/java/club/mcams/carpet/AmsServerMod.java
Original file line number Diff line number Diff line change
@@ -1,48 +1,48 @@
/*
* This file is part of the Carpet AMS Addition project, licensed under the
* GNU Lesser General Public License v3.0
*
* Copyright (C) 2023 A Minecraft Server and contributors
*
* Carpet AMS Addition is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Carpet AMS Addition is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with Carpet AMS Addition. If not, see <https://www.gnu.org/licenses/>.
*/

package club.mcams.carpet;

import club.mcams.carpet.util.AutoMixinAuditExecutor.AutoMixinAuditExecutor;

import net.fabricmc.api.ModInitializer;
import net.fabricmc.loader.api.FabricLoader;

public class AmsServerMod implements ModInitializer {

private static final String MOD_ID = "carpet-ams-addition";
private static String version;

@Override
public void onInitialize() {
version = FabricLoader.getInstance().getModContainer(MOD_ID).orElseThrow(RuntimeException::new).getMetadata().getVersion().getFriendlyString();
AutoMixinAuditExecutor.run();
AmsServer.init();
}
public static String getModId()
{
return MOD_ID;
}

public static String getVersion()
{
return version;
}
}
/*
* This file is part of the Carpet AMS Addition project, licensed under the
* GNU Lesser General Public License v3.0
*
* Copyright (C) 2023 A Minecraft Server and contributors
*
* Carpet AMS Addition is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Carpet AMS Addition is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with Carpet AMS Addition. If not, see <https://www.gnu.org/licenses/>.
*/

package club.mcams.carpet;

import club.mcams.carpet.util.AutoMixinAuditExecutor.AutoMixinAuditExecutor;

import net.fabricmc.api.ModInitializer;
import net.fabricmc.loader.api.FabricLoader;

public class AmsServerMod implements ModInitializer {

private static final String MOD_ID = "carpet-ams-addition";
private static String version;

@Override
public void onInitialize() {
version = FabricLoader.getInstance().getModContainer(MOD_ID).orElseThrow(RuntimeException::new).getMetadata().getVersion().getFriendlyString();
AutoMixinAuditExecutor.run();
AmsServer.init();
}
public static String getModId()
{
return MOD_ID;
}

public static String getVersion()
{
return version;
}
}
Loading

0 comments on commit a711ccb

Please sign in to comment.