mirror of
https://github.com/GTNewHorizons/EnderIO.git
synced 2026-11-20 04:09:43 +00:00
Fix farm station crash and removed the block from creative tab + NEI.
This commit is contained in:
1 parent
69ef563d6b
commit
ff135ea4a7
4 files changed
+5
-3
No files matched your search
@@ -23,6 +23,7 @@ public class BlockFarmStation extends AbstractMachineBlock<TileFarmStation> {
|
||||
protected BlockFarmStation() {
|
||||
super(ModObject.blockFarmStation, TileFarmStation.class);
|
||||
setBlockBounds(0, 0, 0, 1, 0.85f, 1);
|
||||
setCreativeTab(null);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
package crazypants.enderio.farm;
|
||||
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.client.Minecraft;
|
||||
import net.minecraft.client.renderer.RenderBlocks;
|
||||
import net.minecraft.client.renderer.Tessellator;
|
||||
import net.minecraft.util.IIcon;
|
||||
import net.minecraft.world.IBlockAccess;
|
||||
import net.minecraft.world.World;
|
||||
import net.minecraftforge.common.util.ForgeDirection;
|
||||
import cpw.mods.fml.client.registry.ISimpleBlockRenderingHandler;
|
||||
import crazypants.enderio.EnderIO;
|
||||
@@ -41,7 +41,7 @@ public class FarmingStationRenderer implements ISimpleBlockRenderingHandler {
|
||||
Tessellator.instance.setBrightness(15 << 20 | 15 << 4);
|
||||
float b = 1;
|
||||
if(world != null) {
|
||||
b = RenderUtil.claculateTotalBrightnessForLocation((World) world, x, y, z);
|
||||
b = RenderUtil.claculateTotalBrightnessForLocation(Minecraft.getMinecraft().theWorld, x, y, z);
|
||||
}
|
||||
|
||||
float[] cols = new float[6];
|
||||
|
||||
@@ -20,6 +20,7 @@ public class NEIEnderIOConfig implements IConfigureNEI {
|
||||
|
||||
API.hideItem(new ItemStack(EnderIO.blockConduitFacade));
|
||||
API.hideItem(new ItemStack(EnderIO.itemEnderface));
|
||||
API.hideItem(new ItemStack(EnderIO.blockFarmStation));
|
||||
if(!Config.photovoltaicCellEnabled) {
|
||||
API.hideItem(new ItemStack(EnderIO.blockSolarPanel));
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user