mirror of
https://github.com/GTNewHorizons/EnderIO.git
synced 2026-11-27 23:45:55 +00:00
Removed painted blocks from NEI and creative menu.
This commit is contained in:
1 parent
089a12c23d
commit
9e6e09be9b
8 files changed
+23
-24
No files matched your search
@@ -6,7 +6,6 @@ import java.util.Random;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.block.BlockSlab;
|
||||
import net.minecraft.block.ITileEntityProvider;
|
||||
import net.minecraft.block.material.MapColor;
|
||||
import net.minecraft.block.material.Material;
|
||||
import net.minecraft.client.particle.EffectRenderer;
|
||||
import net.minecraft.client.particle.EntityDiggingFX;
|
||||
@@ -27,7 +26,6 @@ import cpw.mods.fml.common.registry.GameRegistry;
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
import crazypants.enderio.EnderIO;
|
||||
import crazypants.enderio.EnderIOTab;
|
||||
import crazypants.enderio.ModObject;
|
||||
import crazypants.enderio.machine.MachineRecipeInput;
|
||||
import crazypants.enderio.machine.MachineRecipeRegistry;
|
||||
@@ -43,7 +41,7 @@ public class BlockPaintedSlab extends BlockSlab implements ITileEntityProvider,
|
||||
public BlockPaintedSlab(boolean isDouble) {
|
||||
super(isDouble, Material.rock);
|
||||
this.isDouble = isDouble;
|
||||
setCreativeTab(EnderIOTab.tabEnderIO);
|
||||
setCreativeTab(null);
|
||||
setBlockName(ModObject.blockPaintedSlab.unlocalisedName + (isDouble ? "Double" : ""));
|
||||
setHardness(0.5F);
|
||||
setResistance(5.0F);
|
||||
@@ -126,7 +124,7 @@ public class BlockPaintedSlab extends BlockSlab implements ITileEntityProvider,
|
||||
double d0 = x + (j1 + 0.5D) / b0;
|
||||
double d1 = y + (k1 + 0.5D) / b0;
|
||||
double d2 = z + (l1 + 0.5D) / b0;
|
||||
int i2 = this.rand.nextInt(6);
|
||||
int i2 = rand.nextInt(6);
|
||||
EntityDiggingFX fx = new EntityDiggingFX(world, d0, d1, d2, d0 - x - 0.5D,
|
||||
d1 - y - 0.5D, d2 - z - 0.5D, this, i2, 0).applyColourMultiplier(x, y, z);
|
||||
fx.setParticleIcon(tex);
|
||||
|
||||
Reference in new issue
Block a user