Fixed sunflower and highrass placement for the sake of it
This commit is contained in:
parent
2c7cd8e8a3
commit
690ea1504a
|
@ -129,4 +129,15 @@ public class ItemBlockFlower extends ItemBlock
|
|||
--par1ItemStack.stackSize;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
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)
|
||||
{
|
||||
if (metadata == 13)
|
||||
{
|
||||
if (!placeBlockAt(stack, player, world, x, y + 1, z, side, hitX, hitY + 1, hitZ, SUNFLOWERTOP)) return false;
|
||||
}
|
||||
|
||||
return super.placeBlockAt(stack, player, world, x, y, z, side, hitX, hitY, hitZ, metadata);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -123,4 +123,15 @@ public class ItemBlockFoliage extends ItemColored
|
|||
return itemStack;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
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)
|
||||
{
|
||||
if (metadata == 3)
|
||||
{
|
||||
if (!placeBlockAt(stack, player, world, x, y + 1, z, side, hitX, hitY + 1, hitZ, GRASSTOP)) return false;
|
||||
}
|
||||
|
||||
return super.placeBlockAt(stack, player, world, x, y, z, side, hitX, hitY, hitZ, metadata);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue