Skip to content

Commit

Permalink
Apply yarn update
Browse files Browse the repository at this point in the history
  • Loading branch information
apple502j committed Mar 24, 2024
1 parent 0050a99 commit 60af712
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public static CompletableFuture<?> run(
final List<CompletableFuture<?>> futures = new ArrayList<>();

for (Map.Entry<Identifier, LootTable> entry : builders.entrySet()) {
JsonObject tableJson = (JsonObject) Util.getResult(LootTable.field_50021.encodeStart(ops, entry.getValue()), IllegalStateException::new);
JsonObject tableJson = (JsonObject) Util.getResult(LootTable.CODEC.encodeStart(ops, entry.getValue()), IllegalStateException::new);
ConditionJsonProvider.write(tableJson, conditionMap.remove(entry.getKey()));
futures.add(DataProvider.writeToPath(writer, tableJson, getOutputPath(fabricDataOutput, entry.getKey())));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@ public String getName() {

private static class TestPredicateProvider extends FabricCodecDataProvider<LootCondition> {
private TestPredicateProvider(FabricDataOutput dataOutput, CompletableFuture<RegistryWrapper.WrapperLookup> registriesFuture) {
super(dataOutput, registriesFuture, DataOutput.OutputType.DATA_PACK, "predicates", LootConditionTypes.field_50031);
super(dataOutput, registriesFuture, DataOutput.OutputType.DATA_PACK, "predicates", LootConditionTypes.CODEC);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public Multimap<RegistryEntry<EntityAttribute>, EntityAttributeModifier> getAttr
}

@Override
public float method_58404(ItemStack stack, BlockState state) {
return isEnabled(stack) ? 20 : super.method_58404(stack, state);
public float getMiningSpeed(ItemStack stack, BlockState state) {
return isEnabled(stack) ? 20 : super.getMiningSpeed(stack, state);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
import org.spongepowered.asm.mixin.injection.Inject;
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;

import net.minecraft.class_9383;
import net.minecraft.registry.ReloadableRegistries;
import net.minecraft.server.DataPackContents;

import net.fabricmc.fabric.api.event.lifecycle.v1.CommonLifecycleEvents;
Expand All @@ -32,10 +32,10 @@
public class DataPackContentsMixin {
@Shadow
@Final
private class_9383.class_9385 field_49921;
private ReloadableRegistries.Lookup reloadableRegistries;

@Inject(method = "refresh", at = @At("TAIL"))
private void hookRefresh(CallbackInfo ci) {
CommonLifecycleEvents.TAGS_LOADED.invoker().onTagsLoaded(field_49921.method_58289(), false);
CommonLifecycleEvents.TAGS_LOADED.invoker().onTagsLoaded(this.reloadableRegistries.getRegistryManager(), false);
}
}

0 comments on commit 60af712

Please sign in to comment.