Skip to content

Commit 299c4cc

Browse files
committed
fixed could of bug on item quantity and font rendering
1 parent 96dd1aa commit 299c4cc

3 files changed

Lines changed: 4 additions & 10 deletions

File tree

src/main/java/wagemaker/uk/freeworld/FreeWorldManager.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ public static void grantFreeWorldItems(Inventory inventory) {
5858
inventory.setBowAndArrowCount(250);
5959

6060
// Add fence materials for the new fence building system
61-
inventory.setWoodFenceMaterialCount(250);
62-
inventory.setBambooFenceMaterialCount(250);
61+
inventory.setWoodFenceMaterialCount(125);
62+
inventory.setBambooFenceMaterialCount(125);
6363

6464
System.out.println("Granted 250 of each item type (including fence materials)");
6565
}

src/main/java/wagemaker/uk/ui/ControlsDialog.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,7 @@ public ControlsDialog() {
4343
* Updates the dialog font to use the current font from FontManager.
4444
*/
4545
private void updateDialogFont() {
46-
// Dispose of old font if it exists
47-
if (dialogFont != null) {
48-
dialogFont.dispose();
49-
}
46+
5047

5148
// Get the current font from FontManager
5249
dialogFont = FontManager.getInstance().getCurrentFont();

src/main/java/wagemaker/uk/ui/ErrorDialog.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,7 @@ public ErrorDialog() {
4646
* Updates the dialog font to use the current font from FontManager.
4747
*/
4848
private void updateDialogFont() {
49-
// Dispose of old font if it exists
50-
if (dialogFont != null) {
51-
dialogFont.dispose();
52-
}
49+
5350

5451
// Get the current font from FontManager
5552
dialogFont = FontManager.getInstance().getCurrentFont();

0 commit comments

Comments
 (0)