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
@@ -15,13 +15,11 @@ import java.util.List;
|
||||
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.block.state.IBlockState;
|
||||
import net.minecraft.init.Blocks;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.util.math.BlockPos;
|
||||
import net.minecraft.world.World;
|
||||
|
||||
import forestry.core.config.Constants;
|
||||
import forestry.core.proxy.Proxies;
|
||||
import forestry.core.utils.BlockUtil;
|
||||
|
||||
public class CropBasicAgriCraft extends Crop {
|
||||
|
||||
@@ -45,8 +43,9 @@ public class CropBasicAgriCraft extends Crop {
|
||||
harvest.remove(1); //AgriCraft returns cropsticks in 0, seeds in 1 in getDrops, removing since harvesting doesn't return them.
|
||||
}
|
||||
harvest.remove(0);
|
||||
Proxies.common.addBlockDestroyEffects(world, pos, Blocks.MELON_BLOCK.getDefaultState());
|
||||
world.setBlockState(pos, block.getDefaultState(), Constants.FLAG_BLOCK_SYNCH);
|
||||
|
||||
IBlockState oldState = world.getBlockState(pos);
|
||||
BlockUtil.setBlockWithBreakSound(world, pos, block.getDefaultState(), oldState);
|
||||
return harvest;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user