Skip to content

Commit

Permalink
fix TESR Rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
yor42 committed Dec 21, 2024
1 parent 91b47fb commit fbf4efe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
3 changes: 3 additions & 0 deletions src/main/java/com/lulan/shincolle/block/BlockGrudgeHeavy.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@

import com.lulan.shincolle.capability.CapaTeitoku;
import com.lulan.shincolle.client.render.block.RenderLargeShipyard;
import com.lulan.shincolle.client.render.block.RenderWaypoint;
import com.lulan.shincolle.entity.IShipOwner;
import com.lulan.shincolle.init.ModBlocks;
import com.lulan.shincolle.item.BasicEntityItem;
import com.lulan.shincolle.tileentity.TileEntityWaypoint;
import com.lulan.shincolle.tileentity.TileMultiGrudgeHeavy;
import com.lulan.shincolle.utility.BlockHelper;
import com.lulan.shincolle.utility.EntityHelper;
Expand Down Expand Up @@ -93,6 +95,7 @@ public void initModel() {

//register tile entity render
ClientRegistry.bindTileEntitySpecialRenderer(TileMultiGrudgeHeavy.class, new RenderLargeShipyard());
ClientRegistry.bindTileEntitySpecialRenderer(TileEntityWaypoint.class, new RenderWaypoint());

}

Expand Down
11 changes: 0 additions & 11 deletions src/main/java/com/lulan/shincolle/block/BlockWaypoint.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package com.lulan.shincolle.block;

import com.lulan.shincolle.capability.CapaTeitoku;
import com.lulan.shincolle.client.render.block.RenderWaypoint;
import com.lulan.shincolle.entity.IShipOwner;
import com.lulan.shincolle.item.TargetWrench;
import com.lulan.shincolle.tileentity.TileEntityWaypoint;
Expand Down Expand Up @@ -29,8 +28,6 @@
import net.minecraft.world.Explosion;
import net.minecraft.world.IBlockAccess;
import net.minecraft.world.World;
import net.minecraftforge.client.model.ModelLoader;
import net.minecraftforge.fml.client.registry.ClientRegistry;

import javax.annotation.Nullable;
import java.util.List;
Expand Down Expand Up @@ -140,14 +137,6 @@ public boolean doesSideBlockRendering(IBlockState state, IBlockAccess world, Blo
return mat.isLiquid();
}

@Override
public void initModel() {
super.initModel();
//register tile entity render
ClientRegistry.bindTileEntitySpecialRenderer(TileEntityWaypoint.class, new RenderWaypoint());

}

@Override
public EnumBlockRenderType getRenderType(IBlockState state) {
return EnumBlockRenderType.ENTITYBLOCK_ANIMATED;
Expand Down

0 comments on commit fbf4efe

Please sign in to comment.