fix: 修复 26.1.2 运行时 mixin 问题
build / build (push) Has been cancelled

- MixinServerPlayerEntity: 移除失效的 @Shadow isSpectator,packDirty 加 null 检查(修复 playerSit 崩溃) & - MixinSpawnHelper: 改用 @Inject getMobForSpawn,避免与 Carpet NaturalSpawnerMixin 的 @Redirect 冲突 & - MixinBoatEntity: 改挂 AbstractBoat.tick(Boat 无 tick) & - MixinMobEntity: 移除对接口 default 方法的无效 @Shadow & - MixinPlayerInventory: creativeNoInfinitePickup 改用 hasInfiniteMaterials(原 isInCreativeMode 已不存在) & - MixinRedstoneWireBlock: oldRedstoneConnectionLogic 改挂 getConnectingSide & - 禁用 datapack.MixinVanillaResourcePackProvider(新版资源包系统重构,待重写) & - ServerMain: registerCommands 加日志+异常捕获
This commit is contained in:
AxTps committed 2026-10-03 08:15:04 +08:00
1 parent 8e44aaa780
commit 6687583c96
9 files changed
+46 -35

No files matched your search

@@ -38,6 +38,7 @@ public class ServerMain implements ModInitializer, CarpetExtension {
@Override
public void onInitialize() {
LOGGER.info("[SLSA] onInitialize: managing Carpet extension");
INSTANCE = this;
CarpetServer.manageExtension(this);
}
@@ -75,8 +76,14 @@ public class ServerMain implements ModInitializer, CarpetExtension {
@Override
public void registerCommands(CommandDispatcher<CommandSourceStack> dispatcher, CommandBuildContext commandBuildContext) {
HatCommand.register(dispatcher);
SitCommand.register(dispatcher);
BotCommand.register(dispatcher);
LOGGER.info("[SLSA] registerCommands called!");
try {
HatCommand.register(dispatcher);
SitCommand.register(dispatcher);
BotCommand.register(dispatcher);
LOGGER.info("[SLSA] commands registered: hat/sit/bot");
} catch (Throwable t) {
LOGGER.error("[SLSA] failed to register commands", t);
}
}
}