Get the light from infront of the storage unit
This commit is contained in:
parent
d728cd70d8
commit
c1097a5cd8
1 changed files with 1 additions and 1 deletions
|
@ -46,7 +46,7 @@ public class StorageUnitEntityRenderer extends BlockEntityRenderer<StorageUnitBa
|
|||
matrices.translate(-1, 1, 2);
|
||||
break;
|
||||
}
|
||||
int lightAbove = WorldRenderer.getLightmapCoordinates(storage.getWorld(), storage.getPos().up());
|
||||
int lightAbove = WorldRenderer.getLightmapCoordinates(storage.getWorld(), storage.getPos().offset(storage.getFacing()));
|
||||
MinecraftClient.getInstance().getItemRenderer().renderItem(stack, ModelTransformation.Mode.FIXED, lightAbove, OverlayTexture.DEFAULT_UV, matrices, vertexConsumers);
|
||||
matrices.pop();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue