mirror of
https://github.com/Creators-of-Create/Create.git
synced 2024-12-26 15:06:42 +01:00
Fix up ItemOutline
This commit is contained in:
parent
6cf204f6af
commit
205e47352e
1 changed files with 2 additions and 2 deletions
|
@ -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 a new issue