mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-01-25 10:32:49 +00:00
Fix buzzsaw not replanting wheat occasionally
This commit is contained in:
parent
ba24ed64aa
commit
d669c4372e
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user