From 42fb3db4ab9941bab9b2031f8e3e1fe4c2ead4b6 Mon Sep 17 00:00:00 2001 From: apple502j <33279053+apple502j@users.noreply.github.com> Date: Wed, 10 Apr 2024 19:54:41 +0900 Subject: [PATCH] add debug log --- .../fabric/mixin/resource/conditions/DataPackContentsMixin.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fabric-resource-conditions-api-v1/src/main/java/net/fabricmc/fabric/mixin/resource/conditions/DataPackContentsMixin.java b/fabric-resource-conditions-api-v1/src/main/java/net/fabricmc/fabric/mixin/resource/conditions/DataPackContentsMixin.java index 1f08d5c20c..fc66db8ec1 100644 --- a/fabric-resource-conditions-api-v1/src/main/java/net/fabricmc/fabric/mixin/resource/conditions/DataPackContentsMixin.java +++ b/fabric-resource-conditions-api-v1/src/main/java/net/fabricmc/fabric/mixin/resource/conditions/DataPackContentsMixin.java @@ -28,6 +28,7 @@ import net.minecraft.registry.CombinedDynamicRegistries; import net.minecraft.registry.ServerDynamicRegistryType; import net.minecraft.resource.ResourceManager; +import net.minecraft.resource.featuretoggle.FeatureFlags; import net.minecraft.resource.featuretoggle.FeatureSet; import net.minecraft.server.DataPackContents; import net.minecraft.server.command.CommandManager; @@ -49,6 +50,7 @@ private void hookRefresh(CallbackInfo ci) { at = @At("HEAD") ) private static void hookReload(ResourceManager manager, CombinedDynamicRegistries combinedDynamicRegistries, FeatureSet enabledFeatures, CommandManager.RegistrationEnvironment environment, int functionPermissionLevel, Executor prepareExecutor, Executor applyExecutor, CallbackInfoReturnable> cir) { + System.out.println("Enabling " + FeatureFlags.FEATURE_MANAGER.toId(enabledFeatures)); ResourceConditionsImpl.CURRENT_FEATURES.set(enabledFeatures); } }