Skip to content

Commit

Permalink
fix weird ComputerCraft block placement
Browse files Browse the repository at this point in the history
  • Loading branch information
lyqyd committed Feb 2, 2015
1 parent 96f4037 commit ef636ce
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Expand Up @@ -478,6 +478,7 @@ public void updateEntity ()
*/
public boolean placeBlockAt (ItemStack stack, EntityPlayer player, World world, int x, int y, int z, int side, float hitX, float hitY, float hitZ, int metadata, Block block)
{
metadata = block.onBlockPlaced(world, x, y, z, side, hitX, hitY, hitZ, metadata);
if (!world.setBlock(x, y, z, block, metadata, 3))
{
return false;
Expand Down
1 change: 1 addition & 0 deletions src/main/java/tmechworks/blocks/logic/DrawbridgeLogic.java
Expand Up @@ -456,6 +456,7 @@ public void updateEntity ()
*/
public boolean placeBlockAt (ItemStack stack, EntityPlayer player, World world, int x, int y, int z, int side, float hitX, float hitY, float hitZ, int metadata, Block block)
{
metadata = block.onBlockPlaced(world, x, y, z, side, hitX, hitY, hitZ, metadata);
if (!world.setBlock(x, y, z, block, metadata, 3))
{
return false;
Expand Down

0 comments on commit ef636ce

Please sign in to comment.