Skip to content

Commit

Permalink
#3791: Handle third party tools rewriting integers badly
Browse files Browse the repository at this point in the history
  • Loading branch information
md-5 committed Feb 18, 2025
1 parent 2a78233 commit 0d153fe
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion proxy/src/main/java/net/md_5/bungee/conf/YamlConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,9 @@ private void save()
@Override
public int getInt(String path, int def)
{
return get( path, def );
// #3791: Sometimes third-party tools rewrite large ints into doubles
Number number = get( path, def );
return number.intValue();
}

@Override
Expand Down

0 comments on commit 0d153fe

Please sign in to comment.