Skip to content

Commit

Permalink
Fix metal blocks not working as beacon bases
Browse files Browse the repository at this point in the history
  • Loading branch information
mDiyo committed Jul 21, 2014
1 parent d891a26 commit 6f324bc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 16 deletions.
16 changes: 3 additions & 13 deletions src/main/java/tconstruct/world/blocks/MeatBlock.java
Expand Up @@ -10,6 +10,7 @@
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.util.IIcon;
import net.minecraft.world.IBlockAccess;
import net.minecraft.world.World;
import tconstruct.library.TConstructRegistry;
import cpw.mods.fml.relauncher.Side;
Expand Down Expand Up @@ -174,19 +175,8 @@ public void getSubBlocks (Item b, CreativeTabs par2CreativeTabs, List par3List)
par3List.add(new ItemStack(b, 1, i));
}

// @Override
// public boolean canSustainLeaves (World world, int x, int y, int z)
// {
// return true;
// }
//
// @Override
// public boolean isWood (World world, int x, int y, int z)
// {
// return true;
// }

public boolean isBeaconBase (World worldObj, int x, int y, int z, int beaconX, int beaconY, int beaconZ)
@Override
public boolean isBeaconBase (IBlockAccess worldObj, int x, int y, int z, int beaconX, int beaconY, int beaconZ)
{
return true;
}
Expand Down
7 changes: 4 additions & 3 deletions src/main/java/tconstruct/world/blocks/TMetalBlock.java
@@ -1,9 +1,9 @@
package tconstruct.world.blocks;

import tconstruct.blocks.TConstructBlock;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.world.World;
import net.minecraft.world.IBlockAccess;
import tconstruct.blocks.TConstructBlock;

public class TMetalBlock extends TConstructBlock
{
Expand All @@ -17,7 +17,8 @@ public TMetalBlock(Material material, float hardness)
this.setStepSound(Block.soundTypeMetal);
}

public boolean isBeaconBase (World worldObj, int x, int y, int z, int beaconX, int beaconY, int beaconZ)
@Override
public boolean isBeaconBase (IBlockAccess worldObj, int x, int y, int z, int beaconX, int beaconY, int beaconZ)
{
return true;
}
Expand Down

0 comments on commit 6f324bc

Please sign in to comment.