mirror of
https://github.com/ViaVersion/ViaFabricPlus.git
synced 2024-12-22 16:48:25 +01:00
Slightly fixed formatting
This commit is contained in:
parent
fbb66e87c6
commit
e0ec0e3c13
@ -50,18 +50,18 @@ public abstract class MixinItem {
|
|||||||
private int changeCrossbowDamage(Item instance) {
|
private int changeCrossbowDamage(Item instance) {
|
||||||
if (instance instanceof ArmorItem armor && ProtocolTranslator.getTargetVersion().olderThanOrEqualTo(LegacyProtocolVersion.b1_8tob1_8_1)) {
|
if (instance instanceof ArmorItem armor && ProtocolTranslator.getTargetVersion().olderThanOrEqualTo(LegacyProtocolVersion.b1_8tob1_8_1)) {
|
||||||
final int baseMultiplier = ((IArmorMaterials) armor.getMaterial()).viaFabricPlus$getBaseMultiplier(armor.getType());
|
final int baseMultiplier = ((IArmorMaterials) armor.getMaterial()).viaFabricPlus$getBaseMultiplier(armor.getType());
|
||||||
if (armor.getMaterial() == ArmorMaterials.LEATHER)
|
if (armor.getMaterial() == ArmorMaterials.LEATHER) {
|
||||||
return baseMultiplier * 3;
|
return baseMultiplier * 3;
|
||||||
else if (armor.getMaterial() == ArmorMaterials.CHAIN || armor.getMaterial() == ArmorMaterials.GOLD)
|
} else if (armor.getMaterial() == ArmorMaterials.CHAIN || armor.getMaterial() == ArmorMaterials.GOLD) {
|
||||||
return baseMultiplier * 6;
|
return baseMultiplier * 6;
|
||||||
else if (armor.getMaterial() == ArmorMaterials.IRON)
|
} else if (armor.getMaterial() == ArmorMaterials.IRON) {
|
||||||
return baseMultiplier * 12;
|
return baseMultiplier * 12;
|
||||||
else if (armor.getMaterial() == ArmorMaterials.DIAMOND)
|
} else if (armor.getMaterial() == ArmorMaterials.DIAMOND) {
|
||||||
return baseMultiplier * 24;
|
return baseMultiplier * 24;
|
||||||
else
|
} else {
|
||||||
return maxDamage;
|
return maxDamage;
|
||||||
} else
|
}
|
||||||
if (instance instanceof CrossbowItem && ProtocolTranslator.getTargetVersion().olderThanOrEqualTo(ProtocolVersion.v1_17_1)) {
|
} else if (instance instanceof CrossbowItem && ProtocolTranslator.getTargetVersion().olderThanOrEqualTo(ProtocolVersion.v1_17_1)) {
|
||||||
return 326;
|
return 326;
|
||||||
} else {
|
} else {
|
||||||
return maxDamage;
|
return maxDamage;
|
||||||
|
Loading…
Reference in New Issue
Block a user