Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public class SkyblockInventoryScreen extends InventoryScreen implements HoveredI
private static final Path FOLDER = SkyblockerMod.CONFIG_DIR.resolve("equipment");

private final Slot[] equipmentSlots = new Slot[4];
private ItemStack hoveredItem;
private @Nullable ItemStack hoveredItem;

private static void save(String profileId) {
try {
Expand Down Expand Up @@ -116,9 +116,7 @@ public static void initEquipment() {

ClientLifecycleEvents.CLIENT_STOPPING.register(client1 -> {
String profileId = Utils.getProfileId();
if (!profileId.isBlank()) {
CompletableFuture.runAsync(() -> save(profileId), Executors.newVirtualThreadPerTaskExecutor());
}
if (!profileId.isBlank()) save(profileId);
});
}

Expand Down
Loading