mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-26 23:03:18 +00:00
Fix #1203 Saplings don't make a sound when placed. Fix more of the farm.
This commit is contained in:
1 parent
4ae72d7550
commit
55d35c4cbe
41 files changed
+233
-259
No files matched your search
@@ -149,7 +149,9 @@ public abstract class FarmLogicWatered extends FarmLogic {
|
||||
if (!farmHousing.getFarmInventory().hasResources(resources)) {
|
||||
return false;
|
||||
}
|
||||
world.setBlockState(position, ground);
|
||||
if (!BlockUtil.setBlockWithPlaceSound(world, position, ground)) {
|
||||
return false;
|
||||
}
|
||||
farmHousing.getFarmInventory().removeResources(resources);
|
||||
return true;
|
||||
}
|
||||
@@ -164,7 +166,7 @@ public abstract class FarmLogicWatered extends FarmLogic {
|
||||
}
|
||||
|
||||
produce.addAll(BlockUtil.getBlockDrops(world, position));
|
||||
world.setBlockState(position, Blocks.WATER.getDefaultState());
|
||||
BlockUtil.setBlockWithPlaceSound(world, position, Blocks.WATER.getDefaultState());
|
||||
farmHousing.removeLiquid(STACK_WATER);
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user