Skip to content

Commit

Permalink
Merge branch 'dynamic-sound' of https://github.com/JR1811/fabric-docs
Browse files Browse the repository at this point in the history
…into dynamic-sound
  • Loading branch information
JR1811 committed Aug 26, 2024
2 parents 4be69c9 + b13c0a7 commit 97785a5
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
import net.minecraft.potion.Potions;
import net.minecraft.registry.Registries;
import net.minecraft.registry.Registry;
import net.minecraft.registry.entry.RegistryEntry;
import net.minecraft.util.Identifier;

import net.fabricmc.api.ModInitializer;
Expand All @@ -22,7 +21,7 @@ public class FabricDocsReferencePotions implements ModInitializer {
Identifier.of("fabric-docs-reference", "tater"),
new Potion(
new StatusEffectInstance(
RegistryEntry.of(FabricDocsReferenceEffects.TATER_EFFECT),
Registries.STATUS_EFFECT.getEntry(FabricDocsReferenceEffects.TATER_EFFECT),
3600,
0)));

Expand All @@ -35,7 +34,7 @@ public void onInitialize() {
// Ingredient
Items.POTATO,
// Output potion.
RegistryEntry.of(TATER_POTION)
Registries.POTION.getEntry(TATER_POTION)
);
});
}
Expand Down

0 comments on commit 97785a5

Please sign in to comment.