Skip to content

Commit

Permalink
Make Spotless Happy
Browse files Browse the repository at this point in the history
  • Loading branch information
IntegerLimit committed Jul 9, 2024
1 parent 4ae8167 commit 286d393
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
import javax.annotation.Nonnull;
import javax.annotation.Nullable;

import com.nomiceu.nomilabs.NomiLabs;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.util.ResourceLocation;
import net.minecraft.util.math.BlockPos;

import com.nomiceu.nomilabs.NomiLabs;
import com.nomiceu.nomilabs.remap.datafixer.DataFixerHandler;

/**
Expand Down Expand Up @@ -68,8 +68,10 @@ public int getOldId() {
public int getId() {
// Return oldId as a fallback, so that if the rl is not registered, we can still let remappers remap it
if (rl == null || !DataFixerHandler.getBlockToIdMap().containsKey(rl)) {
NomiLabs.LOGGER.debug("[Data Fixer] Block at Pos {} has Resource Location {}, which is not registered.", rl, pos);
NomiLabs.LOGGER.debug("[Data Fixer] Most likely, this indicates removed blocks. If the Resource Location is null, report this to Nomi-CEu/Nomi-Labs Devs.");
NomiLabs.LOGGER.debug("[Data Fixer] Block at Pos {} has Resource Location {}, which is not registered.", rl,
pos);
NomiLabs.LOGGER.debug(
"[Data Fixer] Most likely, this indicates removed blocks. If the Resource Location is null, report this to Nomi-CEu/Nomi-Labs Devs.");
return oldId;
}
// Still use getOrDefault, just in case
Expand Down

0 comments on commit 286d393

Please sign in to comment.