Skip to content

Commit

Permalink
🎨 调整代码
Browse files Browse the repository at this point in the history
  • Loading branch information
1024-byteeeee committed Apr 9, 2024
1 parent c8019b2 commit a70c693
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@

import static club.mcams.carpet.commands.rule.commandCustomBlockBlastResistance.CustomBlockBlastResistanceCommandRegistry.CUSTOM_BLOCK_BLAST_RESISTANCE_MAP;

@SuppressWarnings("ReadWriteStringCanBeUsed")
public class CustomBlockBlastResistanceConfig {
@SuppressWarnings("ReadWriteStringCanBeUsed")
public static void loadFromJson(String configFilePath) {
Gson gson = new Gson();
Path path = Paths.get(configFilePath);
Expand All @@ -64,6 +64,7 @@ public static void loadFromJson(String configFilePath) {
}
}

@SuppressWarnings("ReadWriteStringCanBeUsed")
public static void saveToJson(Map<BlockState, Float> customBlockMap, String configFilePath) {
Gson gson = new GsonBuilder().setPrettyPrinting().create();
Map<String, Float> simplifiedMap = new HashMap<>();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@

@Mixin(BlockRotator.class)
public abstract class BlockRotatorMixin {
@SuppressWarnings("EnhancedSwitchMigration")
@Inject(
method = "flip_block",
at = @At(
Expand Down

0 comments on commit a70c693

Please sign in to comment.