aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com
diff options
context:
space:
mode:
authorGTNH-Colen <54497873+GTNH-Colen@users.noreply.github.com>2023-01-10 05:07:17 +0000
committerGTNH-Colen <54497873+GTNH-Colen@users.noreply.github.com>2023-01-10 05:07:17 +0000
commitd85ca0dedd5f0ecc91e0a8869796f1ac56ef75bf (patch)
treebec03e7a70afb863bc0a9ee62298f938bc248f09 /src/main/java/com
parentcc93c8ce39cb79f08b7f682f364d60cd10489ff6 (diff)
downloadGT5-Unofficial-d85ca0dedd5f0ecc91e0a8869796f1ac56ef75bf.tar.gz
GT5-Unofficial-d85ca0dedd5f0ecc91e0a8869796f1ac56ef75bf.tar.bz2
GT5-Unofficial-d85ca0dedd5f0ecc91e0a8869796f1ac56ef75bf.zip
Maybe fix?
Diffstat (limited to 'src/main/java/com')
-rw-r--r--src/main/java/com/github/technus/tectech/compatibility/openmodularturrets/TT_turret_loader.java3
-rw-r--r--src/main/java/com/github/technus/tectech/loader/TecTechConfig.java6
-rw-r--r--src/main/java/com/github/technus/tectech/proxy/ClientProxy.java5
-rw-r--r--src/main/java/com/github/technus/tectech/thing/block/RenderEyeOfHarmony.java1
4 files changed, 11 insertions, 4 deletions
diff --git a/src/main/java/com/github/technus/tectech/compatibility/openmodularturrets/TT_turret_loader.java b/src/main/java/com/github/technus/tectech/compatibility/openmodularturrets/TT_turret_loader.java
index 1d77c71ce8..cf7096df0c 100644
--- a/src/main/java/com/github/technus/tectech/compatibility/openmodularturrets/TT_turret_loader.java
+++ b/src/main/java/com/github/technus/tectech/compatibility/openmodularturrets/TT_turret_loader.java
@@ -6,6 +6,8 @@ import com.github.technus.tectech.compatibility.openmodularturrets.blocks.turret
import com.github.technus.tectech.compatibility.openmodularturrets.entity.projectiles.projectileEM;
import com.github.technus.tectech.compatibility.openmodularturrets.entity.projectiles.projectileRenderEM;
import com.github.technus.tectech.compatibility.openmodularturrets.tileentity.turret.TileTurretHeadEM;
+import com.github.technus.tectech.thing.block.RenderEyeOfHarmony;
+import com.github.technus.tectech.thing.block.TileEyeOfHarmony;
import cpw.mods.fml.client.registry.ClientRegistry;
import cpw.mods.fml.client.registry.RenderingRegistry;
import net.minecraft.item.Item;
@@ -16,6 +18,7 @@ public class TT_turret_loader implements Runnable {
public void run() {
TurretHeadRenderEM turretHeadRenderEM = new TurretHeadRenderEM();
ClientRegistry.bindTileEntitySpecialRenderer(TileTurretHeadEM.class, turretHeadRenderEM);
+ ClientRegistry.bindTileEntitySpecialRenderer(TileEyeOfHarmony.class, new RenderEyeOfHarmony());
MinecraftForgeClient.registerItemRenderer(
Item.getItemFromBlock(TurretHeadEM.INSTANCE),
new TurretHeadItemRenderEM(turretHeadRenderEM, new TileTurretHeadEM()));
diff --git a/src/main/java/com/github/technus/tectech/loader/TecTechConfig.java b/src/main/java/com/github/technus/tectech/loader/TecTechConfig.java
index f12e756bd6..6f0197a3ba 100644
--- a/src/main/java/com/github/technus/tectech/loader/TecTechConfig.java
+++ b/src/main/java/com/github/technus/tectech/loader/TecTechConfig.java
@@ -3,6 +3,9 @@ package com.github.technus.tectech.loader;
import com.github.technus.tectech.thing.block.RenderEyeOfHarmony;
import com.github.technus.tectech.thing.block.TileEyeOfHarmony;
import cpw.mods.fml.client.registry.ClientRegistry;
+import cpw.mods.fml.common.event.FMLInitializationEvent;
+import cpw.mods.fml.relauncher.Side;
+import cpw.mods.fml.relauncher.SideOnly;
import eu.usrv.yamcore.config.ConfigManager;
import java.io.File;
@@ -254,8 +257,9 @@ public class TecTechConfig extends ConfigManager {
"tesla_tweaks",
TESLA_VISUAL_EFFECT,
"Set true to enable the cool visual effect when tesla tower running.");
+ }
- ClientRegistry.bindTileEntitySpecialRenderer(TileEyeOfHarmony.class, new RenderEyeOfHarmony());
+ void specialRenderers() {
}
/**
diff --git a/src/main/java/com/github/technus/tectech/proxy/ClientProxy.java b/src/main/java/com/github/technus/tectech/proxy/ClientProxy.java
index 8368b48482..da0c30cbf5 100644
--- a/src/main/java/com/github/technus/tectech/proxy/ClientProxy.java
+++ b/src/main/java/com/github/technus/tectech/proxy/ClientProxy.java
@@ -12,6 +12,7 @@ import com.gtnewhorizon.structurelib.entity.fx.WeightlessParticleFX;
import cpw.mods.fml.client.FMLClientHandler;
import cpw.mods.fml.client.registry.RenderingRegistry;
import cpw.mods.fml.common.Loader;
+import cpw.mods.fml.common.event.FMLInitializationEvent;
import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
import net.minecraft.client.Minecraft;
import net.minecraft.client.entity.EntityClientPlayerMP;
@@ -43,8 +44,6 @@ public class ClientProxy extends CommonProxy {
if (Loader.isModLoaded("openmodularturrets")) {
new TT_turret_loader().run();
}
-
- // ClientRegistry.bindTileEntitySpecialRenderer(TileEyeOfHarmony.class, new RenderEyeOfHarmony());
}
@Override
@@ -185,4 +184,6 @@ public class ClientProxy extends CommonProxy {
public boolean isThePlayer(EntityPlayer player) {
return getPlayer() == player;
}
+
+
}
diff --git a/src/main/java/com/github/technus/tectech/thing/block/RenderEyeOfHarmony.java b/src/main/java/com/github/technus/tectech/thing/block/RenderEyeOfHarmony.java
index b88ba7bbed..9be2a139d1 100644
--- a/src/main/java/com/github/technus/tectech/thing/block/RenderEyeOfHarmony.java
+++ b/src/main/java/com/github/technus/tectech/thing/block/RenderEyeOfHarmony.java
@@ -17,7 +17,6 @@ import net.minecraftforge.client.model.AdvancedModelLoader;
import net.minecraftforge.client.model.IModelCustom;
import org.lwjgl.opengl.GL11;
-@SideOnly(Side.CLIENT)
public class RenderEyeOfHarmony extends TileEntitySpecialRenderer {
private static final ResourceLocation starLayer0 = new ResourceLocation(MODID, "models/StarLayer0.png");