mirror of
https://github.com/Creators-of-Create/Create.git
synced 2024-11-10 12:33:57 +01:00
Fix up ItemOutline
This commit is contained in:
parent
6cf204f6af
commit
205e47352e
@ -34,12 +34,12 @@ public class ItemOutline extends Outline {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void render(PoseStack ms, SuperRenderTypeBuffer buffer, float pt) {
|
public void render(PoseStack ms, SuperRenderTypeBuffer buffer, Vec3 camera, float pt) {
|
||||||
Minecraft mc = Minecraft.getInstance();
|
Minecraft mc = Minecraft.getInstance();
|
||||||
ms.pushPose();
|
ms.pushPose();
|
||||||
|
|
||||||
TransformStack.cast(ms)
|
TransformStack.cast(ms)
|
||||||
.translate(pos)
|
.translate(pos.x - camera.x, pos.y - camera.y, pos.z - camera.z)
|
||||||
.scale(params.alpha);
|
.scale(params.alpha);
|
||||||
|
|
||||||
mc.getItemRenderer().render(stack, ItemTransforms.TransformType.FIXED, false, ms,
|
mc.getItemRenderer().render(stack, ItemTransforms.TransformType.FIXED, false, ms,
|
||||||
|
Loading…
Reference in New Issue
Block a user