Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Gaming32 committed Sep 5, 2024
1 parent 9a3e45d commit 01b3b8b
Showing 1 changed file with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
package net.neoforged.neoforge.client.event;

import com.google.common.collect.ImmutableMap;
import java.util.HashMap;
import java.util.Map;
import net.minecraft.client.animation.AnimationChannel;
import net.minecraft.resources.ResourceLocation;
import net.neoforged.bus.api.Event;
Expand All @@ -14,9 +16,6 @@
import net.neoforged.neoforge.client.entity.animation.AnimationTarget;
import org.jetbrains.annotations.ApiStatus;

import java.util.HashMap;
import java.util.Map;

/**
* Allows registering custom {@link AnimationTarget}s and
* {@link AnimationChannel.Interpolation interpolation function}s for loading JSON entity animation files.
Expand Down Expand Up @@ -56,9 +55,8 @@ private static void checkDuplicate(String what, ResourceLocation key, Map<Resour
final var prevModId = by.putIfAbsent(key, currentModId);
if (prevModId != null) {
throw new IllegalStateException(
"Duplicate " + what + " registration for " + key + ". " +
currentModId + " tried to overwrite " + prevModId + "."
);
"Duplicate " + what + " registration for " + key + ". " +
currentModId + " tried to overwrite " + prevModId + ".");
}
}
}

0 comments on commit 01b3b8b

Please sign in to comment.