9
0
mirror of https://github.com/Xiao-MoMi/Custom-Fishing.git synced 2025-12-28 19:39:06 +00:00
This commit is contained in:
Xiao-MoMi
2023-03-22 13:57:21 +08:00
parent 06583e3e8f
commit b5098e54ac
3 changed files with 4 additions and 4 deletions

View File

@@ -4,7 +4,7 @@ plugins {
}
group = 'net.momirealms'
version = '1.3.0.1'
version = '1.3.0.2'
repositories {
mavenCentral()

View File

@@ -79,8 +79,8 @@ public class OldBetonQuestCFQuest extends Objective implements Listener {
public String getProperty(String name, String playerID) {
return switch (name.toLowerCase(Locale.ROOT)) {
case "amount" ->
Integer.toString(this.amount - ((FishObjective.FishData) this.dataMap.get(playerID)).getAmount());
case "left" -> Integer.toString(((FishObjective.FishData) this.dataMap.get(playerID)).getAmount());
Integer.toString(this.amount - ((OldBetonQuestCFQuest.FishData) this.dataMap.get(playerID)).getAmount());
case "left" -> Integer.toString(((OldBetonQuestCFQuest.FishData) this.dataMap.get(playerID)).getAmount());
case "total" -> Integer.toString(this.amount);
default -> "";
};

View File

@@ -777,7 +777,7 @@ public class FishingManager extends Function {
return;
}
if (!isVanilla && loot != null) {
if (!isVanilla && loot != null && loot.getFailureActions() != null) {
for (Action action : loot.getFailureActions())
action.doOn(player, null);
}