Skip to content

Commit

Permalink
Fix trying to load 1.18 NMS mappings on 1.17
Browse files Browse the repository at this point in the history
oops
  • Loading branch information
mcmonkey4eva committed Dec 7, 2021
1 parent 86e0d87 commit d7b9acf
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public static void init() {
nmsLivingEntity = Class.forName("net.minecraft.world.entity.EntityLiving");
String playerAttackMethod = null, attackStrengthField = null;
boolean isCompat = false;
if (!SentinelVersionCompat.vFuture) { // 1.18 names
if (SentinelVersionCompat.v1_18 && !SentinelVersionCompat.vFuture) { // 1.18 names
endermanAngryField = "bY"; // EnderMan#DATA_CREEPY
playerAttackMethod = "d"; // Player#attack(Entity)
attackStrengthField = "aR"; // LivingEntity#attackStrengthTicker
Expand Down

0 comments on commit d7b9acf

Please sign in to comment.