mirror of
https://github.com/GTNewHorizons/EnderIO.git
synced 2026-11-20 12:19:55 +00:00
Fixes the Cocoa Farmer to instantly replant
This commit is contained in:
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;
|
||||
|
||||
Reference in new issue
Block a user