Skip to content

Commit

Permalink
Removed unused method
Browse files Browse the repository at this point in the history
  • Loading branch information
Edivad99 committed Feb 16, 2024
1 parent 4417bdf commit df253d8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,16 +81,6 @@ public void save(Consumer<FinishedRecipe> finishedRecipe) {
this.save(finishedRecipe, ForgeRegistries.ITEMS.getKey(this.result));
}

public void save(Consumer<FinishedRecipe> finishedRecipe, String key) {
var resourcelocation = ForgeRegistries.ITEMS.getKey(this.result);
if ((new ResourceLocation(key)).equals(resourcelocation)) {
throw new IllegalStateException(
"Shaped Recipe %s should remove its 'save' argument".formatted(key));
} else {
this.save(finishedRecipe, new ResourceLocation(key));
}
}

public void save(Consumer<FinishedRecipe> finishedRecipe, ResourceLocation resourceLocation) {
var path = resourceLocation.getPath();
var customResourceLocation = RailcraftConstants.rl("rolling/" + path);
Expand Down Expand Up @@ -164,6 +154,5 @@ public JsonObject serializeAdvancement() {
public ResourceLocation getAdvancementId() {
return null;
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ public static Collection<RegistryObject<Item>> entries() {
.rarity(Rarity.UNCOMMON)
.stacksTo(1)));

public static final RegistryObject<Item> TUNNEL_BORE =
public static final RegistryObject<TunnelBoreItem> TUNNEL_BORE =
deferredRegister.register("tunnel_bore",
() -> new TunnelBoreItem(new Item.Properties()
.rarity(Rarity.UNCOMMON)
Expand Down

0 comments on commit df253d8

Please sign in to comment.