Skip to content

Commit 5f936eb

Browse files
committed
Dont use alias!
1 parent f46e639 commit 5f936eb

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

sources/src/main/java/io/akarin/server/mixin/optimization/WeakEnchantmentManager.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,14 @@ public class WeakEnchantmentManager {
4545
@Shadow(aliases = "c") @Final private static EnchantmentManager.EnchantmentModifierThorns thorns;
4646
@Shadow(aliases = "d") @Final private static EnchantmentManager.EnchantmentModifierArthropods arthropods;
4747

48-
@Shadow(aliases = "a") private static void applyEnchantmentModifierArray(EnchantmentManager.EnchantmentModifier modifier, Iterable<ItemStack> iterable) {}
49-
@Shadow(aliases = "a") private static void applyEnchantmentModifier(EnchantmentManager.EnchantmentModifier modifier, ItemStack itemstack) {}
48+
@Shadow private static void a(EnchantmentManager.EnchantmentModifier modifier, Iterable<ItemStack> iterable) {}
49+
@Shadow private static void a(EnchantmentManager.EnchantmentModifier modifier, ItemStack itemstack) {}
5050

5151
@Overwrite
5252
public static int a(Iterable<ItemStack> iterable, DamageSource damageSource) {
5353
protection.a = 0; // PAIL: damageModifier
5454
protection.b = damageSource;
55-
applyEnchantmentModifierArray(protection, iterable);
55+
a(protection, iterable); // PAIL: applyEnchantmentModifierArray
5656
protection.b = null; // Akarin - Remove reference to Damagesource
5757
return protection.a;
5858
}
@@ -62,11 +62,11 @@ public static void a(EntityLiving user, Entity attacker) { // PAIL: applyThornEn
6262
thorns.b = attacker;
6363
thorns.a = user;
6464
if (user != null) {
65-
applyEnchantmentModifierArray(thorns, user.aQ()); // PAIL: getEquipmentAndArmor
65+
a(thorns, user.aQ()); // PAIL: applyEnchantmentModifierArray - getEquipmentAndArmor
6666
}
6767

6868
if (attacker instanceof EntityHuman) {
69-
applyEnchantmentModifier(thorns, user.getItemInMainHand());
69+
a(thorns, user.getItemInMainHand()); // PAIL: applyEnchantmentModifier
7070
}
7171

7272
// Akarin Start - remove references to entity objects to avoid memory leaks
@@ -80,11 +80,11 @@ public static void b(EntityLiving user, Entity target) { // PAIL: applyArthropod
8080
arthropods.a = user;
8181
arthropods.b = target;
8282
if (user != null) {
83-
applyEnchantmentModifierArray(arthropods, user.aQ()); // PAIL: getEquipmentAndArmor
83+
a(arthropods, user.aQ()); // PAIL: applyEnchantmentModifierArray - getEquipmentAndArmor
8484
}
8585

8686
if (user instanceof EntityHuman) {
87-
applyEnchantmentModifier(arthropods, user.getItemInMainHand());
87+
a(arthropods, user.getItemInMainHand()); // PAIL: applyEnchantmentModifier
8888
}
8989

9090
// Akarin Start - remove references to entity objects to avoid memory leaks

0 commit comments

Comments
 (0)