correct field mappings for 1.20.2

This commit is contained in:
xsmeths 2023-10-02 12:21:09 +01:00
parent aa920651d0
commit 951b30ee72

View File

@ -30,7 +30,7 @@ public class FakeArmorStandImpl extends FakeEntityImpl<String> implements FakeAr
static {
try {
final Field dataSharedFlagsId = Entity.class.getDeclaredField("an"); // DATA_SHARED_FLAGS_ID
final Field dataSharedFlagsId = Entity.class.getDeclaredField("ao"); // DATA_SHARED_FLAGS_ID
dataSharedFlagsId.setAccessible(true);
DATA_SHARED_FLAGS_ID = forceCast(dataSharedFlagsId.get(null));
final Field dataCustomNameField = Entity.class.getDeclaredField("aU"); // DATA_CUSTOM_NAME