File tree Expand file tree Collapse file tree
src/main/java/org/mcmonkey/sentinel/utilities Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -39,8 +39,17 @@ public static void init() {
3939 nmsDataWatcherObject = Class .forName ("net.minecraft.network.syncher.DataWatcherObject" ); // EntityDataAccessor
4040 nmsEntityEnderman = Class .forName ("net.minecraft.world.entity.monster.EntityEnderman" );
4141 if (SentinelVersionCompat .v1_20 && !SentinelVersionCompat .vFuture ) { // 1.20 names
42- // https://minidigger.github.io/MiniMappingViewer/#/mojang/server/1.20.2
43- endermanAngryField = "bV" ; // net.minecraft.world.entity.monster.EnderMan#DATA_CREEPY
42+ try {
43+ // https://minidigger.github.io/MiniMappingViewer/#/mojang/server/1.20.2
44+ if (nmsEntityEnderman .getDeclaredField ("bV" ) != null ) {
45+ endermanAngryField = "bV" ; // net.minecraft.world.entity.monster.EnderMan#DATA_CREEPY
46+ }
47+ }
48+ catch (Throwable ex ) {
49+ // https://minidigger.github.io/MiniMappingViewer/#/mojang/server/1.20.6
50+ endermanAngryField = "ca" ; // net.minecraft.world.entity.monster.EnderMan#DATA_CREEPY
51+ }
52+ // https://minidigger.github.io/MiniMappingViewer/#/mojang/server/1.20.6
4453 broadcastEffectMethod = "a" ; // net.minecraft.world.level.Level#broadcastEntityEvent(Entity,byte)
4554 dataWatcherSet = "a" ; // net.minecraft.network.syncher.SynchedEntityData#set
4655 }
You can’t perform that action at this time.
0 commit comments