Skip to content

Commit

Permalink
Prevent a runtime error message about invalid item name prefixes (#105)
Browse files Browse the repository at this point in the history
  • Loading branch information
rndmorris authored Jan 20, 2025
1 parent 7b0712d commit b891471
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package dev.rndmorris.salisarcana.common.item;

import static dev.rndmorris.salisarcana.SalisArcana.MODID;

import java.util.Arrays;
import java.util.List;
import java.util.Objects;
Expand Down Expand Up @@ -30,10 +28,10 @@ public abstract class PlaceholderItem extends Item {

public static void registerPlaceholders() {
if (ConfigModuleRoot.enhancements.replaceWandCapsSettings.isEnabled()) {
GameRegistry.registerItem(capPlaceholder = new WandCapPlaceholderItem(), MODID + ":capPlaceholder");
GameRegistry.registerItem(capPlaceholder = new WandCapPlaceholderItem(), "capPlaceholder");
}
if (ConfigModuleRoot.enhancements.replaceWandCoreSettings.isEnabled()) {
GameRegistry.registerItem(rodPlaceholder = new WandRodPlaceholderItem(), MODID + ":rodPlaceholder");
GameRegistry.registerItem(rodPlaceholder = new WandRodPlaceholderItem(), "rodPlaceholder");
}
}

Expand Down

0 comments on commit b891471

Please sign in to comment.