mirror of
https://github.com/GTNewHorizons/Electro-Magic-Tools.git
synced 2026-11-26 06:43:01 +00:00
fixed weird behavior of GUIs due to short Overflows
fixed Aqua Infused Gen not working underwater did some changes to the reflected gens, still don't work.
This commit is contained in:
1 parent
d229201b90
commit
63f04556e2
13 files changed
+119
-202
No files matched your search
@@ -2,6 +2,7 @@ package emt.init;
|
||||
|
||||
import cpw.mods.fml.common.registry.GameRegistry;
|
||||
import emt.block.BlockReflectedGen;
|
||||
import emt.tile.generator.TileEntityBaseGenerator;
|
||||
import emt.tile.generator.TileEntityReflexionGen;
|
||||
import java.util.List;
|
||||
|
||||
@@ -19,12 +20,12 @@ public class EMTAutogeneratedGens
|
||||
sets = (short)(sets + 1);
|
||||
}
|
||||
BRG = new BlockReflectedGen[sets];
|
||||
for (short i = 0; i < sets; i = (short)(i + 1)) {
|
||||
BRG[i] = new BlockReflectedGen("EGenerator", i);
|
||||
}
|
||||
for (int i = 0; i < TileEntityReflexionGen.L.size(); i++) {
|
||||
GameRegistry.registerTileEntity(TileEntityReflexionGen.GensS[i], "tileentity" + TileEntityReflexionGen.L.get(i));
|
||||
for (short i = 0; i < sets; ++i) {
|
||||
BRG[i] = new BlockReflectedGen("EGenerator.Set." + Short.toString(i), i);
|
||||
}
|
||||
// for (int i = 0; i < TileEntityReflexionGen.L.size(); i++) {
|
||||
GameRegistry.registerTileEntity(TileEntityBaseGenerator.class, "TileEntityBaseGenerator");// + TileEntityReflexionGen.L.get(i));
|
||||
//}
|
||||
for (short i = 0; i < sets; i = (short)(i + 1)) {
|
||||
GameRegistry.registerBlock(BRG[i], "EGenerator.Set." + Short.toString(i));
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user