Update to MC 1.14 / Fabric
This commit is contained in:
@@ -28,6 +28,9 @@ import net.minecraft.client.renderer.model.IBakedModel;
|
||||
//$$ @Mixin(RenderItem.class)
|
||||
//#endif
|
||||
public abstract class MixinRenderItem {
|
||||
//#if MC>=11400
|
||||
//$$ @Inject(method = "renderItemModel", at = @At("HEAD"))
|
||||
//#else
|
||||
//#if MC>=11300
|
||||
@Inject(method = "renderModel(Lnet/minecraft/client/renderer/model/IBakedModel;Lnet/minecraft/item/ItemStack;)V",
|
||||
at = @At("HEAD"))
|
||||
@@ -40,6 +43,7 @@ public abstract class MixinRenderItem {
|
||||
//$$ at = @At("HEAD"))
|
||||
//#endif
|
||||
//#endif
|
||||
//#endif
|
||||
private void onRenderModel(IBakedModel model, ItemStack stack, CallbackInfo ci) {
|
||||
BlendState blendState = BlendState.getState();
|
||||
if (blendState != null) {
|
||||
|
||||
Reference in New Issue
Block a user