mirror fix

This commit is contained in:
Bob 2026-01-11 20:21:02 +01:00
parent 8aa9ff2895
commit 026c0d074e
3 changed files with 10 additions and 6 deletions

View File

@ -6,6 +6,7 @@ import java.nio.file.StandardCopyOption
buildscript { buildscript {
repositories { repositories {
maven { url = 'https://maven.ntmr.dev/proxy/' }
maven { url = 'https://maven.minecraftforge.net/' } maven { url = 'https://maven.minecraftforge.net/' }
maven { url = 'https://plugins.gradle.org/m2' } maven { url = 'https://plugins.gradle.org/m2' }
mavenCentral() mavenCentral()
@ -67,6 +68,10 @@ eclipse.classpath.file.whenMerged { cp ->
} }
repositories { repositories {
maven {
name = 'Blerg'
url = 'https://maven.ntmr.dev/proxy/'
}
maven { maven {
name = 'ModMaven' name = 'ModMaven'
url = 'https://modmaven.dev' url = 'https://modmaven.dev'

View File

@ -26,3 +26,4 @@
* Fixed JSON gun reload animations becoming faster and faster with the trenchmaster set * Fixed JSON gun reload animations becoming faster and faster with the trenchmaster set
* Fixed heat transfer rate labels on the boilers and coker unit being off by a magnitude of 10 * Fixed heat transfer rate labels on the boilers and coker unit being off by a magnitude of 10
* Fixed crucible not having a heat transfer rate tooltip * Fixed crucible not having a heat transfer rate tooltip
* Fixed certain heliostat mirror rotations not showing the mirror

View File

@ -66,17 +66,15 @@ public class RenderMirror implements ISimpleBlockRenderingHandler {
GroupObject go = null; GroupObject go = null;
for(GroupObject obj : ((WavefrontObject)ResourceManager.solar_mirror).groupObjects) { for(GroupObject obj : ((WavefrontObject)ResourceManager.solar_mirror).groupObjects) {
if(obj.name.equals("Mirror")) if(obj.name.equals("Mirror")) go = obj;
go = obj;
} }
if(go == null) if(go == null) return;
return;
Tessellator tes = Tessellator.instance; Tessellator tes = Tessellator.instance;
double dist = Math.sqrt(dx * dx + dy * dy + dz * dz); double dist = Math.sqrt(dx * dx + dy * dy + dz * dz);
double pitch = -Math.asin((dy + 0.5) / dist) + Math.PI / 2D; double pitch = -Math.asin(dy / dist) + Math.PI / 2D;
double yaw = -Math.atan2(dz, dx) - Math.PI / 2D; double yaw = -Math.atan2(dz, dx) - Math.PI / 2D;
for(Face f : go.faces) { for(Face f : go.faces) {