Skip to content

Commit

Permalink
dg修复
Browse files Browse the repository at this point in the history
  • Loading branch information
skyinr committed Oct 30, 2022
1 parent 7fc5392 commit 71a7789
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package io.github.tt432.kitchenkarrot.datagen;

import io.github.tt432.kitchenkarrot.block.PlateBlock;
import io.github.tt432.kitchenkarrot.item.ModBlockItems;
import io.github.tt432.kitchenkarrot.item.ModItems;
import net.minecraft.data.DataGenerator;
import net.minecraft.resources.ResourceLocation;
Expand All @@ -27,7 +28,7 @@ protected void registerModels() {
ForgeRegistries.ITEMS.forEach(item -> {
if (item.getRegistryName().getNamespace().equals(DataGenerators.MOD_ID)) {
if (item instanceof BlockItem) {
if (item == ModItems.FOOD_FILLED_PLATE.get())
if (item == ModItems.FOOD_FILLED_PLATE.get() || item == ModBlockItems.GEM_CARROT.get())
return;
withExistingParent(item.getRegistryName().getPath(), modLoc("block/" + item.getRegistryName().getPath()));
} else {
Expand Down

0 comments on commit 71a7789

Please sign in to comment.