Skip to content

Commit

Permalink
Fix missing method
Browse files Browse the repository at this point in the history
  • Loading branch information
cavallium committed Apr 1, 2023
1 parent dd0e79b commit d28c86d
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,13 @@ public class TranslatorClientbound {

Method blockPositionAddMethod = null;
try {
blockPositionAddMethod = NMS_BLOCK_POSITION_CLASS.getDeclaredMethod("c", int.class, int.class, int.class);
blockPositionAddMethod = NMS_BLOCK_POSITION_CLASS.getDeclaredMethod("offset", int.class, int.class, int.class);
} catch (NoSuchMethodException e) {
e.printStackTrace();
try {
blockPositionAddMethod = NMS_BLOCK_POSITION_CLASS.getDeclaredMethod("c", int.class, int.class, int.class);
} catch (NoSuchMethodException e2) {
e2.printStackTrace();
}
}
NMS_BLOCK_POSITION_ADD_CLASS = blockPositionAddMethod;

Expand Down

0 comments on commit d28c86d

Please sign in to comment.