Skip to content

Commit

Permalink
Fix Advanced Solar Panel render bug
Browse files Browse the repository at this point in the history
  • Loading branch information
aurilisdev committed Jan 31, 2025
1 parent 8c3dbe4 commit 482100e
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,19 @@
import net.minecraft.client.renderer.RenderType;
import net.minecraft.client.renderer.blockentity.BlockEntityRendererProvider;
import net.minecraft.client.resources.model.BakedModel;
import net.minecraft.world.phys.AABB;

public class RenderAdvancedSolarPanel extends AbstractTileRenderer<TileAdvancedSolarPanel> {

public RenderAdvancedSolarPanel(BlockEntityRendererProvider.Context context) {
super(context);
}


@Override
public AABB getRenderBoundingBox(TileAdvancedSolarPanel blockEntity) {
return new AABB(blockEntity.getBlockPos()).inflate(1);
}

@Override
public void render(TileAdvancedSolarPanel solarPanel, float partialTicks, PoseStack matrixStackIn, @NotNull MultiBufferSource bufferIn, int combinedLightIn, int combinedOverlayIn) {

Expand Down

0 comments on commit 482100e

Please sign in to comment.