more fixes

This commit is contained in:
Progwml6 committed 2014-02-01 14:18:17 -05:00
1 parent 48402e1a7e
commit ffd383dc41
44 files changed
+224 -205

No files matched your search

@@ -68,14 +68,14 @@ public class ItemBlockLandmine extends ItemBlock
{
TRepo.landmine.func_149689_a(world, x, y, z, player, stack);
TileEntityLandmine te = (TileEntityLandmine) world.getBlockTileEntity(x, y, z);
TileEntityLandmine te = (TileEntityLandmine) world.func_147438_o(x, y, z);
if (te == null)
{
te = (TileEntityLandmine) TRepo.landmine.createTileEntity(world, metadata);
}
te.triggerType = stack.getItemDamage();
world.setBlockTileEntity(x, y, z, te);
world.func_147455_a(x, y, z, te);
TRepo.landmine.func_149714_e(world, x, y, z, metadata);
}
@@ -4,6 +4,7 @@ import java.util.List;
import tconstruct.common.TRepo;
import mantle.blocks.abstracts.MultiItemBlock;
import mantle.world.WorldHelper;
import net.minecraft.block.Block;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack;
@@ -41,9 +42,9 @@ public class OreberryBushItem extends MultiItemBlock
else if (player.canPlayerEdit(x, y, z, side, stack) && player.canPlayerEdit(x, y + 1, z, side, stack))
{
Block block = world.getBlock(x, y, z);
Block block = world.func_147439_a(x, y, z);
if (block != null && block.canSustainPlant(world, x, y, z, ForgeDirection.UP, (IPlantable) TRepo.oreBerry) && world.isAirBlock(x, y + 1, z))
if (block != null && block.canSustainPlant(world, x, y, z, ForgeDirection.UP, (IPlantable) TRepo.oreBerry) && WorldHelper.isAirBlock(world, x, y + 1, z))
{
world.func_147465_d(x, y + 1, z, blockB, stack.getItemDamage() % 4, 3);
if (!player.capabilities.isCreativeMode)
@@ -4,6 +4,7 @@ import java.util.List;
import tconstruct.common.TRepo;
import mantle.blocks.abstracts.MultiItemBlock;
import mantle.world.WorldHelper;
import net.minecraft.block.Block;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemBlock;
@@ -47,9 +48,9 @@ public class OreberryBushSecondItem extends MultiItemBlock
else if (player.canPlayerEdit(x, y, z, side, stack) && player.canPlayerEdit(x, y + 1, z, side, stack))
{
Block block = world.getBlock(x, y, z);
Block block = world.func_147439_a(x, y, z);
if (block != null && block.canSustainPlant(world, x, y, z, ForgeDirection.UP, (IPlantable) TRepo.oreBerrySecond) && world.isAirBlock(x, y + 1, z))
if (block != null && block.canSustainPlant(world, x, y, z, ForgeDirection.UP, (IPlantable) TRepo.oreBerrySecond) && WorldHelper.isAirBlock(world, x, y + 1, z))
{
world.func_147465_d(x, y + 1, z, blockB, stack.getItemDamage() % 4, 3);
if (!player.capabilities.isCreativeMode)
@@ -24,12 +24,12 @@ public class WoolSlab1Item extends MultiItemBlock
@Override
public boolean onItemUse (ItemStack stack, EntityPlayer player, World world, int x, int y, int z, int side, float hitX, float hitY, float hitZ)
{
int id = world.getBlock(x, y, z);
Block b = world.func_147439_a(x, y, z);
int meta = world.getBlockMetadata(x, y, z);
int trueMeta = meta % 8;
boolean flag = (id & 8) != 0;
if ((side == 1 && flag || side == 0 && !flag) && id == this && trueMeta == stack.getItemDamage())
if ((side == 1 && flag || side == 0 && !flag) && b == this.block && trueMeta == stack.getItemDamage())
{
if (world.func_147465_d(x, y, z, Blocks.wool, trueMeta, 3))
{