Skip to content

Commit

Permalink
Fix config crashing bug
Browse files Browse the repository at this point in the history
  • Loading branch information
MrFast-js committed Dec 15, 2023
1 parent 3f6e591 commit ca41d6f
Show file tree
Hide file tree
Showing 4 changed files with 105 additions and 63 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ org.gradle.jvmargs=-Xmx4g
baseGroup = mrfast.sbf
mcVersion = 1.8.9
modid = skyblockfeatures
version = 1.2.9-BETA1
version = 1.2.9-BETA2
4 changes: 2 additions & 2 deletions src/main/java/mrfast/sbf/commands/configCommand.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
import mrfast.sbf.SkyblockFeatures;
import mrfast.sbf.core.SkyblockInfo;
import mrfast.sbf.core.VersionManager;
import mrfast.sbf.gui.ConfigGui;
import mrfast.sbf.gui.EditLocationsGui;
import mrfast.sbf.gui.GuiManager;
import mrfast.sbf.gui.ConfigGui;
import mrfast.sbf.gui.components.Point;
import mrfast.sbf.utils.GuiUtils;
import mrfast.sbf.utils.Utils;
Expand Down Expand Up @@ -86,7 +86,7 @@ public void processCommand(ICommandSender sender, String[] args) throws CommandE
Utils.sendMessage("Gui Positions Reset!");
break;
case "config":
GuiUtils.openGui(new ConfigGui(true));
// GuiUtils.openGui(new ConfigGui(true));
break;
case "help":
String helpMessage = "§eSkyblock Features Commands and Info\n"
Expand Down
24 changes: 12 additions & 12 deletions src/main/java/mrfast/sbf/core/Config.java
Original file line number Diff line number Diff line change
Expand Up @@ -1120,6 +1120,18 @@ public class Config extends Vigilant {
)
public boolean dungeonMap = false;

@Property(
type = PropertyType.SLIDER,
name = "Player Head Scale",
description = "Scale the size of the heads on the dungeon map §3(Percent)",
category = "§1§rDungeons",
subcategory = "Dungeon Map",
min = 50,
max = 150,
searchTags = {"Dungeon Map"}
)
public int dungeonMapHeadScale = 100;

@Property(
type = PropertyType.SWITCH,
name = "Center Player on Dungeon Map",
Expand Down Expand Up @@ -1160,18 +1172,6 @@ public class Config extends Vigilant {
)
public boolean dungeonMapHeads = true;

@Property(
type = PropertyType.SLIDER,
name = "Player Head Scale",
description = "Scale the size of the heads on the dungeon map §3(Percent)",
category = "§1§rDungeons",
subcategory = "Dungeon Map",
min = 50,
max = 150,
searchTags = {"Dungeon Map"}
)
public int dungeonMapHeadScale = 100;

@Property(
type = PropertyType.SWITCH,
name = "Quick Start",
Expand Down

0 comments on commit ca41d6f

Please sign in to comment.