Skip to content

Commit

Permalink
Minor version fix in command dispatcher
Browse files Browse the repository at this point in the history
- Updated Internals class
  • Loading branch information
josemmo committed Sep 28, 2024
1 parent 424aa67 commit a7770d9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public class Internals {
Object nmsInstance = obcClass.getDeclaredMethod("getServer").invoke(obcInstance);
Class<?> nmsClass = nmsInstance.getClass().getSuperclass();

if (MINECRAFT_VERSION >= 20.6) {
if (MINECRAFT_VERSION >= 20.5) {
// Get "net.minecraft.commands.Commands" references
Object nmsCommandsInstance = nmsClass.getDeclaredMethod("getCommands").invoke(nmsInstance);
Class<?> nmsCommandsClass = nmsCommandsInstance.getClass();
Expand Down

0 comments on commit a7770d9

Please sign in to comment.