Skip to content

Commit 4b08c48

Browse files
committed
Subtract claim blocks used for expantion from bonus intead of accrued
1 parent 3791143 commit 4b08c48

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
**REQUIRES: SF 2096+ & GP 255+ (latest versions are highly recommended)**
55
- Fixed island width calculation being off by 2 `/is info`
66
- Fixed `isa transfer` not working when supplied with an owner
7-
- Added `is expand [blocks]` to allow player to expand their islands using claim blocks _(subtracted from accrued blocks - will regen)_
7+
- Added `is expand [blocks]` to allow player to expand their islands using claim blocks _(subtracted from bonus claim blocks - will regen)_
88
- Added `skyclaims.max-size` option to limit how large players can expand their islands
99
- `skyclaims.initial-size` now supports being set to 256
1010
- Added a confirmation message to the admin delete shortcut in `/is info`

src/main/java/net/mohron/skyclaims/command/user/CommandExpand.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ public CommandResult execute(CommandSource src, CommandContext args) throws Comm
104104
throw new CommandException(Text.of(TextColors.RED, "You need ", TextColors.LIGHT_PURPLE, cost, " claim blocks (", TextColors.LIGHT_PURPLE, bal, TextColors.RED, ") to expand your island by ", TextColors.LIGHT_PURPLE, blocks, TextColors.RED, "."));
105105

106106
// Use the player's claim blocks to expand the island
107-
playerData.setAccruedClaimBlocks(playerData.getAccruedClaimBlocks() - cost);
107+
playerData.setBonusClaimBlocks(playerData.getBonusClaimBlocks() - cost);
108108
island.expand(blocks);
109109
player.sendMessage(Text.of(TextColors.GREEN, "Your island has been expanded to ", TextColors.LIGHT_PURPLE, island.getWidth(), TextColors.GRAY, "x", TextColors.LIGHT_PURPLE, island.getWidth(), TextColors.GREEN, "."));
110110

0 commit comments

Comments
 (0)