Skip to content

Commit

Permalink
fix: wrong method called on legacy versions to get protocol version
Browse files Browse the repository at this point in the history
  • Loading branch information
Misat11 committed Jul 17, 2024
1 parent e53aefb commit 57c281c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -601,7 +601,7 @@ public void shutdown0() {
}

return Reflect.getFieldResulted(Reflect.fastInvoke(Bukkit.getServer(), "getServer"), MinecraftServerAccessor.FIELD_STATUS.get())
.fastInvokeResulted(ServerStatusAccessor.METHOD_VERSION.get())
.fastInvokeResulted(ServerStatusAccessor.METHOD_GET_VERSION.get())
.fastInvokeResulted(ServerStatus$VersionAccessor.METHOD_PROTOCOL.get())
.as(Integer.class);
}
Expand Down

0 comments on commit 57c281c

Please sign in to comment.