From 1afc2a26812669e7b131459233e4ef847eee84a0 Mon Sep 17 00:00:00 2001 From: Ruben Taelman Date: Tue, 16 Jul 2024 16:09:42 +0200 Subject: [PATCH] Fix missing blook entity texture, Closes #1030 --- .../client/render/blockentity/RenderBlockEntityPurifier.java | 4 ++-- src/main/resources/assets/minecraft/atlases/chests.json | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/cyclops/evilcraft/client/render/blockentity/RenderBlockEntityPurifier.java b/src/main/java/org/cyclops/evilcraft/client/render/blockentity/RenderBlockEntityPurifier.java index 4768ad365b..d40f5b6a67 100644 --- a/src/main/java/org/cyclops/evilcraft/client/render/blockentity/RenderBlockEntityPurifier.java +++ b/src/main/java/org/cyclops/evilcraft/client/render/blockentity/RenderBlockEntityPurifier.java @@ -8,11 +8,11 @@ import net.minecraft.client.model.geom.ModelLayers; import net.minecraft.client.renderer.MultiBufferSource; import net.minecraft.client.renderer.RenderType; +import net.minecraft.client.renderer.Sheets; import net.minecraft.client.renderer.blockentity.BlockEntityRenderer; import net.minecraft.client.renderer.blockentity.BlockEntityRendererProvider; import net.minecraft.client.renderer.blockentity.EnchantTableRenderer; import net.minecraft.client.renderer.texture.OverlayTexture; -import net.minecraft.client.renderer.texture.TextureAtlas; import net.minecraft.client.renderer.texture.TextureAtlasSprite; import net.minecraft.client.resources.model.Material; import net.minecraft.core.Direction; @@ -41,7 +41,7 @@ */ public class RenderBlockEntityPurifier implements BlockEntityRenderer { - public static final Material TEXTURE_BLOOK = new Material(TextureAtlas.LOCATION_BLOCKS, new ResourceLocation(Reference.MOD_ID, "entity/blook")); + public static final Material TEXTURE_BLOOK = new Material(Sheets.CHEST_SHEET, new ResourceLocation(Reference.MOD_ID, "entity/blook")); private final BookModel enchantmentBook; public RenderBlockEntityPurifier(BlockEntityRendererProvider.Context context) { diff --git a/src/main/resources/assets/minecraft/atlases/chests.json b/src/main/resources/assets/minecraft/atlases/chests.json index 94bb16424c..b7d2cdd616 100644 --- a/src/main/resources/assets/minecraft/atlases/chests.json +++ b/src/main/resources/assets/minecraft/atlases/chests.json @@ -7,6 +7,10 @@ { "type": "minecraft:single", "resource": "evilcraft:model/colossal_blood_chest" + }, + { + "type": "minecraft:single", + "resource": "evilcraft:entity/blook" } ] } \ No newline at end of file