mirror of
https://github.com/ViaVersion/ViaFabricPlus.git
synced 2024-12-22 16:48:25 +01:00
Removed useless version checks
This commit is contained in:
parent
6abdbbce08
commit
c20fee5dae
@ -62,7 +62,7 @@ public abstract class MixinArmorItem {
|
||||
|
||||
@Redirect(method = "getAttributeModifiers", at = @At(value = "FIELD", target = "Lnet/minecraft/item/ArmorItem;attributeModifiers:Lcom/google/common/collect/Multimap;"))
|
||||
private Multimap<EntityAttribute, EntityAttributeModifier> changeAttributeModifiers(ArmorItem instance) {
|
||||
if (ProtocolTranslator.getTargetVersion().olderThanOrEqualTo(ProtocolVersion.v1_8) && DebugSettings.global().replaceAttributeModifiers.isEnabled()) {
|
||||
if (DebugSettings.global().replaceAttributeModifiers.isEnabled()) {
|
||||
return this.viaFabricPlus$AttributeModifiers_r1_8;
|
||||
} else {
|
||||
return this.attributeModifiers;
|
||||
|
@ -89,7 +89,7 @@ public abstract class MixinMiningToolItem extends ToolItem {
|
||||
|
||||
@Redirect(method = "getAttributeModifiers", at = @At(value = "FIELD", target = "Lnet/minecraft/item/MiningToolItem;attributeModifiers:Lcom/google/common/collect/Multimap;"))
|
||||
private Multimap<EntityAttribute, EntityAttributeModifier> changeAttributeModifiers(MiningToolItem instance) {
|
||||
if (ProtocolTranslator.getTargetVersion().olderThanOrEqualTo(ProtocolVersion.v1_8) && DebugSettings.global().replaceAttributeModifiers.isEnabled()) {
|
||||
if (DebugSettings.global().replaceAttributeModifiers.isEnabled()) {
|
||||
return this.viaFabricPlus$AttributeModifiers_r1_8;
|
||||
} else {
|
||||
return this.attributeModifiers;
|
||||
|
@ -118,7 +118,7 @@ public abstract class MixinSwordItem extends ToolItem {
|
||||
|
||||
@Redirect(method = "getAttributeModifiers", at = @At(value = "FIELD", target = "Lnet/minecraft/item/SwordItem;attributeModifiers:Lcom/google/common/collect/Multimap;"))
|
||||
private Multimap<EntityAttribute, EntityAttributeModifier> changeAttributeModifiers(SwordItem instance) {
|
||||
if (ProtocolTranslator.getTargetVersion().olderThanOrEqualTo(ProtocolVersion.v1_8) && DebugSettings.global().replaceAttributeModifiers.isEnabled()) {
|
||||
if (DebugSettings.global().replaceAttributeModifiers.isEnabled()) {
|
||||
return this.viaFabricPlus$AttributeModifiers_r1_8;
|
||||
} else {
|
||||
return this.attributeModifiers;
|
||||
|
Loading…
Reference in New Issue
Block a user