Skip to content

Commit

Permalink
23w46a: Potion getName->name
Browse files Browse the repository at this point in the history
  • Loading branch information
Nickid2018 committed Sep 5, 2024
1 parent f80326b commit fd0b2f6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,9 @@ public static void downloadAssetsIndex(File index) throws IOException {
}
}
log.info("Downloading assets...");
log.info("Following files will be downloaded:");
for (String name : collectedFiles.keySet())
log.info("- {}", name);
WebUtils.downloadInBatch(collectedFiles);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ public static void extractEntityData(MinecraftServer serverObj) {

POTION_EFFECT.put(
potionEffectID,
Potion.getName(BuiltInRegistries.POTION.get(potionEffectKey), "")
BuiltInRegistries.POTION.getValue(potionEffectKey).name()
);

for (MobEffectInstance effectInstance : potionEffect.getEffects()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@

public class Potion {

public static String getName(Optional<Holder<Potion>> optional, String string) {
return SneakyUtil.sneakyNotNull();
public String name() {
throw new RuntimeException();
}

public List<MobEffectInstance> getEffects() {
Expand Down

0 comments on commit fd0b2f6

Please sign in to comment.