Fix buzzsaw not replanting wheat occasionally

This commit is contained in:
abel1502 2025-08-17 12:03:09 +03:00
parent ba24ed64aa
commit d669c4372e
No known key found for this signature in database
GPG Key ID: 076926596A536338

View File

@ -305,6 +305,14 @@ public class TileEntityMachineAutosaw extends TileEntityLoadedBase implements IB
entityItem.delayBeforeCanPickup = 10;
worldObj.spawnEntityInWorld(entityItem);
}
// Apparently, until 1.14 full-grown wheat could sometimes drop no seeds at all
// This is a quick and dirty workaround for that.
if (b == Blocks.wheat && !replanted) {
replacementBlock = b;
replacementMeta = 0;
replanted = true;
}
}
worldObj.setBlock(x, y, z, replacementBlock, replacementMeta, 3);