Skip to content

Commit e066471

Browse files
committed
1.19.4
1 parent 95071f8 commit e066471

5 files changed

Lines changed: 15 additions & 11 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Sentinel NPCs: Combat NPCs for Spigot!
2424

2525
![AnimatedSentinel](https://i.imgur.com/VDwTzrs.gif)
2626

27-
**Version 2.7.1**: Compatible with Spigot 1.8.8 through 1.19.2 (Primarily targeted at 1.19.2) - see 'Common Issues' section below if on older supported versions)
27+
**Version 2.7.3**: Compatible with Spigot 1.8.8 through 1.19.4 (Primarily targeted at 1.19.4) - see 'Common Issues' section below if on older supported versions)
2828

2929
### Downloads
3030

@@ -346,7 +346,7 @@ If you're building a separate plugin you would like to integrate into Sentinel,
346346
<dependency>
347347
<groupId>org.mcmonkey</groupId>
348348
<artifactId>sentinel</artifactId>
349-
<version>2.7.1-SNAPSHOT</version>
349+
<version>2.7.3-SNAPSHOT</version>
350350
<type>jar</type>
351351
<scope>provided</scope>
352352
<exclusions>

pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@
77
<groupId>org.mcmonkey</groupId>
88
<artifactId>sentinel</artifactId>
99
<packaging>jar</packaging>
10-
<version>2.7.2-SNAPSHOT</version>
10+
<version>2.7.3-SNAPSHOT</version>
1111
<name>Sentinel</name>
1212
<description>Combat NPCs for Spigot</description>
1313

1414
<properties>
1515
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
16-
<bukkit.version>1.19.3-R0.1-SNAPSHOT</bukkit.version>
17-
<citizens.version>2.0.30-SNAPSHOT</citizens.version>
16+
<bukkit.version>1.19.4-R0.1-SNAPSHOT</bukkit.version>
17+
<citizens.version>2.0.31-SNAPSHOT</citizens.version>
1818
<BUILD_NUMBER>Unknown</BUILD_NUMBER>
1919
</properties>
2020

src/main/java/org/mcmonkey/sentinel/targeting/SentinelTarget.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ public class SentinelTarget {
119119
/**
120120
* Valid target types for 1.19 or higher.
121121
*/
122-
public static SentinelTarget TADPOLES, FROGS, ALLAYS, WARDENS, CAMELS;
122+
public static SentinelTarget TADPOLES, FROGS, ALLAYS, WARDENS, CAMELS, SNIFFERS;
123123

124124
/**
125125
* Multiple-entity-type targets.

src/main/java/org/mcmonkey/sentinel/utilities/SentinelNMSHelper.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,10 @@ public static void init() {
4343
nmsLivingEntity = Class.forName("net.minecraft.world.entity.EntityLiving");
4444
String attackStrengthField = null;
4545
boolean isCompat = false;
46-
if (SentinelVersionCompat.v1_19 && !SentinelVersionCompat.vFuture) { // 1.19.3 names
47-
// https://minidigger.github.io/MiniMappingViewer/#/mojang/server/1.19.3
48-
endermanAngryField = "bZ"; // net.minecraft.world.entity.monster.EnderMan#DATA_CREEPY
49-
attackStrengthField = "aQ"; // net.minecraft.world.entity.LivingEntity#attackStrengthTicker
46+
if (SentinelVersionCompat.v1_19 && !SentinelVersionCompat.vFuture) { // 1.19.4 names
47+
// https://minidigger.github.io/MiniMappingViewer/#/mojang/server/1.19.4
48+
endermanAngryField = "bU"; // net.minecraft.world.entity.monster.EnderMan#DATA_CREEPY
49+
attackStrengthField = "aO"; // net.minecraft.world.entity.LivingEntity#attackStrengthTicker
5050
broadcastEffectMethod = "a"; // net.minecraft.world.level.Level#broadcastEntityEvent(Entity,byte)
5151
dataWatcherSet = "b"; // net.minecraft.network.syncher.SynchedEntityData#set
5252
isCompat = true;

src/main/java/org/mcmonkey/sentinel/utilities/SentinelVersionCompat.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,9 +187,10 @@ public class SentinelVersionCompat {
187187
SentinelTarget.WARDENS = new SentinelTarget(new EntityType[]{EntityType.WARDEN}, "WARDEN");
188188
try {
189189
SentinelTarget.CAMELS = new SentinelTarget(new EntityType[]{EntityType.valueOf("CAMEL")}, "CAMEL");
190+
SentinelTarget.SNIFFERS = new SentinelTarget(new EntityType[]{EntityType.valueOf("SNIFFER")}, "SNIFFER");
190191
}
191192
catch (Throwable ex) {
192-
// ignore: 1.19.2 lacked camels.
193+
// ignore: 1.19.2 lacked camels, 1.19.3 lacked sniffers.
193194
}
194195
}
195196
if (v1_19) { // && !v1_20
@@ -455,6 +456,9 @@ static EntityType[] v1_19_passive() {
455456
if (SentinelTarget.CAMELS != null) {
456457
res = combine(res, EntityType.valueOf("CAMEL"));
457458
}
459+
if (SentinelTarget.SNIFFERS != null) {
460+
res = combine(res, EntityType.valueOf("SNIFFER"));
461+
}
458462
return res;
459463
}
460464

0 commit comments

Comments
 (0)