Get the light from infront of the storage unit

This commit is contained in:
modmuss50 2020-01-11 13:18:21 +00:00
parent d728cd70d8
commit c1097a5cd8

View file

@ -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();
}