Skip to content

Commit

Permalink
Fix uncolossal chest item rendering failing
Browse files Browse the repository at this point in the history
And sometimes causing a crash, such as with JEI.

Closes #131
  • Loading branch information
rubensworks committed Apr 14, 2020
1 parent 6448970 commit 783c65e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 17 deletions.
2 changes: 1 addition & 1 deletion build.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ minecraft_version=1.15.2
forge_version=31.1.37
mcp_mappings_channel=snapshot
mcp_mappings_version=20200225-1.15.1
cyclopscore_version=1.6.1-1063
cyclopscore_version=1.6.1-1067
release_type=release
fingerprint=bd0353b3e8a2810d60dd584e256e364bc3bedd44

Expand Down
Original file line number Diff line number Diff line change
@@ -1,31 +1,18 @@
package org.cyclops.colossalchests.client.render.tileentity;

import com.mojang.blaze3d.matrix.MatrixStack;
import net.minecraft.client.renderer.IRenderTypeBuffer;
import net.minecraft.client.renderer.tileentity.ItemStackTileEntityRenderer;
import net.minecraft.client.renderer.tileentity.TileEntityRendererDispatcher;
import net.minecraft.item.ItemStack;
import net.minecraftforge.api.distmarker.Dist;
import net.minecraftforge.api.distmarker.OnlyIn;
import org.cyclops.colossalchests.tileentity.TileUncolossalChest;

import java.util.function.Supplier;
import org.cyclops.cyclopscore.client.render.tileentity.ItemStackTileEntityRendererBase;

/**
* @author rubensworks
*/
@OnlyIn(Dist.CLIENT)
public class ItemStackTileEntityUncolossalChestRender extends ItemStackTileEntityRenderer {

private final TileUncolossalChest tile;
public class ItemStackTileEntityUncolossalChestRender extends ItemStackTileEntityRendererBase {

public ItemStackTileEntityUncolossalChestRender() {
this.tile = new TileUncolossalChest();
}

@Override
public void render(ItemStack itemStackIn, MatrixStack matrixStackIn, IRenderTypeBuffer bufferIn, int combinedLightIn, int combinedOverlayIn) {
TileEntityRendererDispatcher.instance.renderItem(this.tile, matrixStackIn, bufferIn, combinedLightIn, combinedOverlayIn);
super(TileUncolossalChest::new);
}

}

0 comments on commit 783c65e

Please sign in to comment.