File tree Expand file tree Collapse file tree
src/main/java/eu/decentsoftware/holograms/api Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -141,7 +141,12 @@ public class NMS_1_17 extends NMS {
141141 int [].class );
142142 // DATA WATCHER OBJECT
143143 if (Version .afterOrEqual (18 )) {
144- if (Version .afterOrEqual (Version .v1_19_R3 )) {
144+ if (Version .afterOrEqual (Version .v1_20_R1 )) {
145+ DWO_ENTITY_DATA = new ReflectField <>(ENTITY_CLASS , "an" ).getValue (null );
146+ DWO_CUSTOM_NAME = new ReflectField <>(ENTITY_CLASS , "aU" ).getValue (null );
147+ DWO_CUSTOM_NAME_VISIBLE = new ReflectField <>(ENTITY_CLASS , "aV" ).getValue (null );
148+ DWO_ARMOR_STAND_DATA = new ReflectField <>(ENTITY_ARMOR_STAND_CLASS , "bC" ).getValue (null );
149+ } else if (Version .afterOrEqual (Version .v1_19_R3 )) {
145150 DWO_ENTITY_DATA = new ReflectField <>(ENTITY_CLASS , "an" ).getValue (null );
146151 DWO_CUSTOM_NAME = new ReflectField <>(ENTITY_CLASS , "aR" ).getValue (null );
147152 DWO_CUSTOM_NAME_VISIBLE = new ReflectField <>(ENTITY_CLASS , "aS" ).getValue (null );
Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ public enum Version {
2929 v1_19_R1 (19 ),
3030 v1_19_R2 (19 ),
3131 v1_19_R3 (19 ),
32+ v1_20_R1 (20 ),
3233 ;
3334
3435 /*
You can’t perform that action at this time.
0 commit comments