Skip to content

Commit

Permalink
修正一处错误
Browse files Browse the repository at this point in the history
  • Loading branch information
TartaricAcid committed Oct 30, 2023
1 parent b2ec8e0 commit 2167b73
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

public class TileEntityEntityPlaceholderRenderer extends BlockEntityWithoutLevelRenderer {
private static final EntityPlaceholderModel BASE_MODEL = new EntityPlaceholderModel();
private static final ResourceLocation TEXTURE = new ResourceLocation(TouhouLittleMaid.MOD_ID, "textures/items/entity_placeholder.png");
private static final ResourceLocation TEXTURE = new ResourceLocation(TouhouLittleMaid.MOD_ID, "textures/item/entity_placeholder.png");

public TileEntityEntityPlaceholderRenderer(BlockEntityRenderDispatcher dispatcher, EntityModelSet modelSet) {
super(dispatcher, modelSet);
Expand All @@ -43,7 +43,7 @@ private ResourceLocation getTexture(ItemStack stack) {
if (recipeId != null) {
Path path = Paths.get(recipeId.getPath().toLowerCase(Locale.US));
String namespace = recipeId.getNamespace().toLowerCase(Locale.US);
ResourceLocation texture = new ResourceLocation(namespace, String.format("textures/items/%s.png", path.getFileName().toString()));
ResourceLocation texture = new ResourceLocation(namespace, String.format("textures/item/%s.png", path.getFileName().toString()));
if (Minecraft.getInstance().getResourceManager().getResource(texture).isPresent()) {
return texture;
}
Expand Down

0 comments on commit 2167b73

Please sign in to comment.