Fixes the Cocoa Farmer to instantly replant

This commit is contained in:
hilburn committed 2014-12-30 17:58:49 +00:00
1 parent 4f214be559
commit 6dcbe62db2
1 file changed
+1 -1
@@ -28,9 +28,9 @@ public class CocoaFarmer extends CustomSeedFarmer
@Override
protected boolean plant(TileFarmStation farm, World worldObj, BlockCoord bc)
{
worldObj.setBlock(bc.x, bc.y, bc.z, Blocks.air, 0, 1 | 2);
int dir = getPlantDirection(worldObj,bc);
if (dir<0) return false;
worldObj.setBlock(bc.x, bc.y, bc.z, Blocks.air, 0, 1 | 2);
worldObj.setBlock(bc.x, bc.y, bc.z, getPlantedBlock(), Direction.facingToDirection[dir], 1 | 2);
farm.actionPerformed(false);
return true;