Some general cleanup
This commit is contained in:
parent
bbc9dd3b37
commit
b5707b144e
20 changed files with 29 additions and 59 deletions
|
@ -30,7 +30,6 @@ import net.minecraft.block.Blocks;
|
|||
import net.minecraft.block.Material;
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.entity.LivingEntity;
|
||||
import net.minecraft.entity.player.PlayerEntity;
|
||||
import net.minecraft.entity.projectile.ProjectileEntity;
|
||||
import net.minecraft.sound.SoundCategory;
|
||||
import net.minecraft.sound.SoundEvents;
|
||||
|
|
|
@ -134,9 +134,7 @@ public class BlockRubberLog extends PillarBlock {
|
|||
if (Energy.valid(stack)) {
|
||||
Energy.of(stack).use(20);
|
||||
} else {
|
||||
stack.damage(1, playerIn, player -> {
|
||||
player.sendToolBreakStatus(hand);
|
||||
});
|
||||
stack.damage(1, playerIn, player -> player.sendToolBreakStatus(hand));
|
||||
}
|
||||
if (!playerIn.inventory.insertStack(TRContent.Parts.SAP.getStack())) {
|
||||
WorldUtils.dropItem(TRContent.Parts.SAP.getStack(), worldIn, pos.offset(hitResult.getSide()));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue