Skip to content

Commit

Permalink
Added v1_20_R1 support
Browse files Browse the repository at this point in the history
  • Loading branch information
d0by1 committed Jun 10, 2023
1 parent 3df0ccc commit 9cc056e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,12 @@ public class NMS_1_17 extends NMS {
int[].class);
// DATA WATCHER OBJECT
if (Version.afterOrEqual(18)) {
if (Version.afterOrEqual(Version.v1_19_R3)) {
if (Version.afterOrEqual(Version.v1_20_R1)) {
DWO_ENTITY_DATA = new ReflectField<>(ENTITY_CLASS, "an").getValue(null);
DWO_CUSTOM_NAME = new ReflectField<>(ENTITY_CLASS, "aU").getValue(null);
DWO_CUSTOM_NAME_VISIBLE = new ReflectField<>(ENTITY_CLASS, "aV").getValue(null);
DWO_ARMOR_STAND_DATA = new ReflectField<>(ENTITY_ARMOR_STAND_CLASS, "bC").getValue(null);
} else if (Version.afterOrEqual(Version.v1_19_R3)) {
DWO_ENTITY_DATA = new ReflectField<>(ENTITY_CLASS, "an").getValue(null);
DWO_CUSTOM_NAME = new ReflectField<>(ENTITY_CLASS, "aR").getValue(null);
DWO_CUSTOM_NAME_VISIBLE = new ReflectField<>(ENTITY_CLASS, "aS").getValue(null);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ public enum Version {
v1_19_R1(19),
v1_19_R2(19),
v1_19_R3(19),
v1_20_R1(20),
;

/*
Expand Down

0 comments on commit 9cc056e

Please sign in to comment.