lots of changes and now 1.19.4 nms functions correctly, tested working

This commit is contained in:
xsmeths 2023-03-22 20:36:44 +00:00
parent 1734189bbb
commit f0daac7d41
5 changed files with 10 additions and 10 deletions

Binary file not shown.

View File

@ -1,2 +1,2 @@
mvn -N install:install-file -Dfile=lib/IslandWorld-8.5.jar -DgroupId=pl.gnacik.islandworld -DartifactId=IslandWorld -Dversion=8.5 -Dpackaging=jar -DgeneratePom=true
mvn -N install:install-file -Dfile=lib/AreaShop-2.6.0.jar -DgroupId=me.wiefferink -DartifactId=areashop -Dversion=2.6.0 -Dpackaging=jar -DgeneratePom=true
mvn -N install:install-file -Dfile=IslandWorld-8.5.jar -DgroupId=pl.gnacik.islandworld -DartifactId=IslandWorld -Dversion=8.5 -Dpackaging=jar -DgeneratePom=true
mvn -N install:install-file -Dfile=AreaShop-2.6.0.jar -DgroupId=me.wiefferink -DartifactId=areashop -Dversion=2.6.0 -Dpackaging=jar -DgeneratePom=true

View File

@ -30,13 +30,13 @@ public class FakeArmorStandImpl extends FakeEntityImpl<String> implements FakeAr
static {
try {
final Field dataSharedFlagsId = Entity.class.getDeclaredField("Z"); // DATA_SHARED_FLAGS_ID
final Field dataSharedFlagsId = Entity.class.getDeclaredField("an"); // DATA_SHARED_FLAGS_ID
dataSharedFlagsId.setAccessible(true);
DATA_SHARED_FLAGS_ID = forceCast(dataSharedFlagsId.get(null));
final Field dataCustomNameField = Entity.class.getDeclaredField("aM"); // DATA_CUSTOM_NAME
final Field dataCustomNameField = Entity.class.getDeclaredField("aR"); // DATA_CUSTOM_NAME
dataCustomNameField.setAccessible(true);
DATA_CUSTOM_NAME = forceCast(dataCustomNameField.get(null));
final Field dataCustomNameVisibleField = Entity.class.getDeclaredField("aN"); // DATA_CUSTOM_NAME_VISIBLE
final Field dataCustomNameVisibleField = Entity.class.getDeclaredField("aS"); // DATA_CUSTOM_NAME_VISIBLE
dataCustomNameVisibleField.setAccessible(true);
DATA_CUSTOM_NAME_VISIBLE = forceCast(dataCustomNameVisibleField.get(null));
} catch (ReflectiveOperationException e) {

View File

@ -28,13 +28,13 @@ public abstract class FakeEntityImpl<T> implements FakeEntity {
static {
try {
final Field entityCounterField = Entity.class.getDeclaredField("c"); // ENTITY_COUNTER
final Field entityCounterField = Entity.class.getDeclaredField("d"); // ENTITY_COUNTER
entityCounterField.setAccessible(true);
ENTITY_COUNTER = (AtomicInteger) entityCounterField.get(null);
final Field dataNoGravityField = Entity.class.getDeclaredField("aP"); // DATA_NO_GRAVITY
final Field dataNoGravityField = Entity.class.getDeclaredField("aU"); // DATA_NO_GRAVITY
dataNoGravityField.setAccessible(true);
DATA_NO_GRAVITY = forceCast(dataNoGravityField.get(null));
final Field dataSilentField = Entity.class.getDeclaredField("aO"); // DATA_SILENT
final Field dataSilentField = Entity.class.getDeclaredField("aT"); // DATA_SILENT
dataSilentField.setAccessible(true);
DATA_SILENT = forceCast(dataSilentField.get(null));
} catch (ReflectiveOperationException e) {

View File

@ -36,7 +36,7 @@
<repository>
<id>github</id>
<name>GitHub Packages</name>
<url>https://maven.pkg.github.com/Flowsqy/ShopChest</url>
<url>https://maven.pkg.github.com/xsmeths/ShopChest</url>
</repository>
</repositories>
</profile>
@ -67,7 +67,7 @@
<repository>
<id>github</id>
<name>GitHub Packages</name>
<url>https://maven.pkg.github.com/Flowsqy/ShopChest</url>
<url>https://maven.pkg.github.com/xsmeths/ShopChest</url>
</repository>
</distributionManagement>