forked from Upstream/mmocore
'can-mine' is now optional for tool restricts
This commit is contained in:
parent
7767e51534
commit
8d1714f886
@ -115,8 +115,9 @@ public class RestrictionManager implements MMOCoreManager {
|
|||||||
String parentFormat = formatId(config.getString("parent"));
|
String parentFormat = formatId(config.getString("parent"));
|
||||||
parent = Objects.requireNonNull(map.get(parentFormat), "Could not find parent with ID '" + parentFormat + "'");
|
parent = Objects.requireNonNull(map.get(parentFormat), "Could not find parent with ID '" + parentFormat + "'");
|
||||||
}
|
}
|
||||||
for (String key : config.getStringList("can-mine"))
|
if (config.contains("can-mine"))
|
||||||
mineable.add(MMOCore.plugin.loadManager.loadBlockType(new MMOLineConfig(key)).generateKey());
|
for (String key : config.getStringList("can-mine"))
|
||||||
|
mineable.add(MMOCore.plugin.loadManager.loadBlockType(new MMOLineConfig(key)).generateKey());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -39,6 +39,7 @@ public class FishingManager extends SpecificProfessionManager {
|
|||||||
MMOCore.plugin.statManager.registerProfession("CRITICAL_FISHING_FAILURE_CHANCE", getLinkedProfession());
|
MMOCore.plugin.statManager.registerProfession("CRITICAL_FISHING_FAILURE_CHANCE", getLinkedProfession());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@NotNull
|
||||||
public FishingDropTable calculateDropTable(@NotNull Player player, @NotNull FishHook hook) {
|
public FishingDropTable calculateDropTable(@NotNull Player player, @NotNull FishHook hook) {
|
||||||
ConditionInstance conditionEntity = new ConditionInstance(player, hook.getLocation());
|
ConditionInstance conditionEntity = new ConditionInstance(player, hook.getLocation());
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user