|
|
@ -26,12 +26,7 @@ public class MixinBlockRenderer {
|
|
|
|
@Inject(method = "Lnet/minecraft/src/RenderBlocks;renderBlockByRenderType(Lnet/minecraft/src/Block;III)Z", at = @At("HEAD"), cancellable = true)
|
|
|
|
@Inject(method = "Lnet/minecraft/src/RenderBlocks;renderBlockByRenderType(Lnet/minecraft/src/Block;III)Z", at = @At("HEAD"), cancellable = true)
|
|
|
|
public void injectMethod(Block block, int i, int j, int k, CallbackInfoReturnable<Boolean> cir){
|
|
|
|
public void injectMethod(Block block, int i, int j, int k, CallbackInfoReturnable<Boolean> cir){
|
|
|
|
if(block.getRenderType() == 28){
|
|
|
|
if(block.getRenderType() == 28){
|
|
|
|
if(block instanceof AbstractWireTileSided) {
|
|
|
|
cir.setReturnValue(this.renderSidedBlock(block, i, j, k));
|
|
|
|
this.renderSidedBlock(block, i, j, k);
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
this.renderStandardBlock(block, i, j, k);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
cir.setReturnValue(true);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|