Fix incorrect number in maximum homes reached message

This commit is contained in:
WiIIiam278 committed 2021-06-30 00:28:29 +01:00
1 parent 50e0d60859
commit 7aaa09abd8
1 file changed
+1 -1
@@ -47,7 +47,7 @@ public class SettingHandler {
} else {
switch (setHomeConditions.getConditionsNotMetReason()) {
case "error_set_home_maximum_homes" -> {
MessageManager.sendMessage(player, "error_set_home_maximum_homes", Integer.toString(HuskHomes.getSettings().getMaximumHomes()));
MessageManager.sendMessage(player, "error_set_home_maximum_homes", Integer.toString(Home.getSetHomeLimit(player)));
}
case "error_insufficient_funds" -> {
MessageManager.sendMessage(player, "error_insufficient_funds", VaultIntegration.format(HuskHomes.getSettings().getSetHomeCost()));