DamageSource lang of drill and saw fix

- create.(drill|saw) -> create.mechanical_\1
- unused DrillTileEntity.damageSourceDrill removed
This commit is contained in:
Yukkuri C 2020-08-23 13:14:34 +08:00
parent 8e349380a5
commit 052fd8e7b6
3 changed files with 2 additions and 4 deletions

View file

@ -29,7 +29,7 @@ import mcp.MethodsReturnNonnullByDefault;
@ParametersAreNonnullByDefault
@MethodsReturnNonnullByDefault
public class DrillBlock extends DirectionalKineticBlock implements ITE<DrillTileEntity> {
public static DamageSource damageSourceDrill = new DamageSource("create.drill").setDamageBypassesArmor();
public static DamageSource damageSourceDrill = new DamageSource("create.mechanical_drill").setDamageBypassesArmor();
public DrillBlock(Properties properties) {
super(properties);

View file

@ -6,8 +6,6 @@ import net.minecraft.util.math.BlockPos;
public class DrillTileEntity extends BlockBreakingKineticTileEntity {
public static DamageSource damageSourceDrill = new DamageSource("create.drill").setDamageBypassesArmor();
public DrillTileEntity(TileEntityType<? extends DrillTileEntity> type) {
super(type);
}

View file

@ -37,7 +37,7 @@ import mcp.MethodsReturnNonnullByDefault;
public class SawBlock extends DirectionalAxisKineticBlock implements ITE<SawTileEntity> {
public static final BooleanProperty RUNNING = BooleanProperty.create("running");
public static DamageSource damageSourceSaw = new DamageSource("create.saw").setDamageBypassesArmor();
public static DamageSource damageSourceSaw = new DamageSource("create.mechanical_saw").setDamageBypassesArmor();
public SawBlock(Properties properties) {
super(properties);