Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rendering giant tools in hand and in inventory issue - Twilight Forest Unofficial (Fabric 1.20.1) #412

Open
marlester-dev opened this issue Nov 2, 2024 · 2 comments

Comments

@marlester-dev
Copy link
Contributor Author

fixed on the mod's side by using

	@WrapOperation(method = "render", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/renderer/entity/ItemRenderer;renderModelLists(Lnet/minecraft/client/resources/model/BakedModel;Lnet/minecraft/world/item/ItemStack;IILcom/mojang/blaze3d/vertex/PoseStack;Lcom/mojang/blaze3d/vertex/VertexConsumer;)V"))
	private void startRenderItem(ItemRenderer instance, BakedModel model, ItemStack stack, int combinedLight, int combinedOverlay, PoseStack matrixStack, VertexConsumer buffer, Operation<Void> original) {
		if (stack.getItem() instanceof GiantItem) {
			matrixStack.pushPose();
			GiantItemRenderHelper.handle(matrixStack);
			original.call(instance, model, stack, combinedLight, combinedOverlay, matrixStack, buffer);
			matrixStack.popPose();
		} else {
			original.call(instance, model, stack, combinedLight, combinedOverlay, matrixStack, buffer);
		}
	}

@marlester-dev
Copy link
Contributor Author

you may close this issue if you want

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant