if (side != ForgeDirection.UP.ordinal()) {
return false;
} else if (player.canPlayerEdit(x, y, z, side, itemStack) && player.canPlayerEdit(x, y + 1, z, side, itemStack)) {
final Block soil = world.getBlock(x, y, z);
if (soil != null && soil.canSustainPlant(world, x, y, z, ForgeDirection.UP, this)
&& world.isAirBlock(x, y + 1, z)) {
final SeedType seed = getSeedType(itemStack.getItemDamage());
if( seed == null || seed.cropType == null ) {
LogHelper.severe("Got NULL seed type or crop when planting " + itemStack);