mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-03-14 05:35:35 +00:00
mirror fix
This commit is contained in:
parent
8aa9ff2895
commit
026c0d074e
@ -6,6 +6,7 @@ import java.nio.file.StandardCopyOption
|
||||
|
||||
buildscript {
|
||||
repositories {
|
||||
maven { url = 'https://maven.ntmr.dev/proxy/' }
|
||||
maven { url = 'https://maven.minecraftforge.net/' }
|
||||
maven { url = 'https://plugins.gradle.org/m2' }
|
||||
mavenCentral()
|
||||
@ -67,6 +68,10 @@ eclipse.classpath.file.whenMerged { cp ->
|
||||
}
|
||||
|
||||
repositories {
|
||||
maven {
|
||||
name = 'Blerg'
|
||||
url = 'https://maven.ntmr.dev/proxy/'
|
||||
}
|
||||
maven {
|
||||
name = 'ModMaven'
|
||||
url = 'https://modmaven.dev'
|
||||
|
||||
@ -25,4 +25,5 @@
|
||||
* Fixed crash caused by the balefire bomb
|
||||
* 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 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
|
||||
@ -66,17 +66,15 @@ public class RenderMirror implements ISimpleBlockRenderingHandler {
|
||||
GroupObject go = null;
|
||||
|
||||
for(GroupObject obj : ((WavefrontObject)ResourceManager.solar_mirror).groupObjects) {
|
||||
if(obj.name.equals("Mirror"))
|
||||
go = obj;
|
||||
if(obj.name.equals("Mirror")) go = obj;
|
||||
}
|
||||
|
||||
if(go == null)
|
||||
return;
|
||||
if(go == null) return;
|
||||
|
||||
Tessellator tes = Tessellator.instance;
|
||||
|
||||
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;
|
||||
|
||||
for(Face f : go.faces) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user