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); } }