mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2026-07-20 18:18:54 +00:00
More instanceof pattern matching
This commit is contained in:
@@ -384,7 +384,7 @@ public final class Config
|
||||
{
|
||||
// Ensure file configs are reloaded. Forge should probably do this, so worth checking in the future.
|
||||
CommentedConfig config = event.getConfig().getConfigData();
|
||||
if( config instanceof CommentedFileConfig ) ((CommentedFileConfig) config).load();
|
||||
if( config instanceof CommentedFileConfig loadable ) loadable.load();
|
||||
|
||||
sync();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user