mirror of
https://github.com/Xiao-MoMi/Custom-Fishing.git
synced 2025-12-28 19:39:06 +00:00
1.3.0.2
This commit is contained in:
@@ -4,7 +4,7 @@ plugins {
|
||||
}
|
||||
|
||||
group = 'net.momirealms'
|
||||
version = '1.3.0.1'
|
||||
version = '1.3.0.2'
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
|
||||
@@ -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 -> "";
|
||||
};
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user