Update Forge to latest

This commit is contained in:
raoulvdberge
2020-01-30 11:43:32 +01:00
parent 94b7ff993e
commit 0b35a5337a
2 changed files with 3 additions and 2 deletions

View File

@@ -94,7 +94,7 @@ processResources {
}
dependencies {
minecraft 'net.minecraftforge:forge:1.15.2-31.0.1'
minecraft 'net.minecraftforge:forge:1.15.2-31.0.14'
compileOnly fg.deobf("mezz.jei:jei-1.15.2:6.0.0.2:api")
runtimeOnly fg.deobf("mezz.jei:jei-1.15.2:6.0.0.2")

View File

@@ -12,6 +12,7 @@ import net.minecraft.client.Minecraft;
import net.minecraft.client.renderer.IRenderTypeBuffer;
import net.minecraft.client.renderer.RenderType;
import net.minecraft.client.renderer.Vector3f;
import net.minecraft.client.renderer.WorldRenderer;
import net.minecraft.client.renderer.model.ItemCameraTransforms;
import net.minecraft.client.renderer.texture.OverlayTexture;
import net.minecraft.client.renderer.texture.TextureAtlasSprite;
@@ -40,7 +41,7 @@ public class StorageMonitorTileRenderer extends TileEntityRenderer<StorageMonito
direction = state.get(RSBlocks.STORAGE_MONITOR.getDirection().getProperty());
}
final int light = 15728880;
final int light = WorldRenderer.getCombinedLight(tile.getWorld(), tile.getPos().add(direction.getDirectionVec()));
final float rotation = (float) (Math.PI * (360 - direction.getOpposite().getHorizontalIndex() * 90) / 180d);
final int type = tile.getStackType();