mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-01-25 10:32:49 +00:00
Merge pull request #2363 from abel1502/abel-buzzsaw-fix
Fix buzzsaw not replanting wheat occasionally
This commit is contained in:
commit
b7da4e7bd1
@ -305,6 +305,14 @@ public class TileEntityMachineAutosaw extends TileEntityLoadedBase implements IB
|
|||||||
entityItem.delayBeforeCanPickup = 10;
|
entityItem.delayBeforeCanPickup = 10;
|
||||||
worldObj.spawnEntityInWorld(entityItem);
|
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);
|
worldObj.setBlock(x, y, z, replacementBlock, replacementMeta, 3);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user