mirror of
https://github.com/GTNewHorizons/EnderIO.git
synced 2026-11-20 12:19:55 +00:00
#934 NoSuchFieldError on servers
This commit is contained in:
1 parent
db2e0ebad6
commit
fa75db00f3
2 files changed
+2
-2
No files matched your search
@@ -25,7 +25,6 @@ public abstract class BlockEio extends Block {
|
||||
setBlockName(name);
|
||||
setStepSound(Block.soundTypeMetal);
|
||||
setCreativeTab(EnderIOTab.tabEnderIO);
|
||||
|
||||
}
|
||||
|
||||
protected void init() {
|
||||
|
||||
@@ -15,7 +15,7 @@ import crazypants.enderio.ModObject;
|
||||
public class BlockIngotStorage extends BlockEio {
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
private IIcon[] icons = new IIcon[Alloy.values().length];
|
||||
private IIcon[] icons;
|
||||
|
||||
public static BlockIngotStorage create() {
|
||||
BlockIngotStorage res = new BlockIngotStorage();
|
||||
@@ -36,6 +36,7 @@ public class BlockIngotStorage extends BlockEio {
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public void registerBlockIcons(IIconRegister register) {
|
||||
icons = new IIcon[Alloy.values().length];
|
||||
for (Alloy alloy : Alloy.values()) {
|
||||
icons[alloy.ordinal()] = register.registerIcon(alloy.iconKey + "Block");
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user