Merge pull request #2363 from abel1502/abel-buzzsaw-fix

Fix buzzsaw not replanting wheat occasionally
This commit is contained in:
HbmMods 2025-08-17 17:57:11 +02:00 committed by GitHub
commit b7da4e7bd1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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);