mirror of
https://github.com/BentoBoxWorld/Boxed.git
synced 2024-12-03 13:23:32 +01:00
Fix advancement naming. Do not need minecraft:
Added in commented out platty advancement roots.
This commit is contained in:
parent
c94be6d0f6
commit
4f94a5ed98
@ -72,11 +72,11 @@ public class AdvancementsManager {
|
||||
while (ad.hasNext()) {
|
||||
Advancement a = ad.next();
|
||||
int score = getScore(a);
|
||||
BentoBox.getInstance().logDebug(" 'minecraft:" + a.getKey().getKey() + "': " + score);
|
||||
BentoBox.getInstance().logDebug(" 'minecraft:" + a.getKey().getKey() + "': " + score);
|
||||
scoreTotal += score;
|
||||
}
|
||||
BentoBox.getInstance().logDebug("Sum total = " + scoreTotal);
|
||||
*/
|
||||
*/
|
||||
}
|
||||
|
||||
/**
|
||||
@ -242,7 +242,7 @@ public class AdvancementsManager {
|
||||
* @param a - advancement
|
||||
* @return score of advancement, or 0 if cannot be worked out
|
||||
*/
|
||||
public int getScore(Advancement a) {
|
||||
public int getScore(Advancement a) {
|
||||
String adv = "advancements." + a.getKey().getKey();
|
||||
// Unknowns
|
||||
if (adv.endsWith("/root")) {
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -353,6 +353,17 @@ area:
|
||||
# Grant these advancements
|
||||
grant-advancements:
|
||||
- minecraft:story/root
|
||||
#- platy:building/root
|
||||
#- platy:caving/root
|
||||
#- platy:combat/root
|
||||
#- platy:exploration/root
|
||||
#- platy:forestry/root
|
||||
#- platy:livestock/root
|
||||
#- platy:nether_structures/root
|
||||
#- platy:ocean/root
|
||||
#- platy:redstone/root
|
||||
#- platy:collection/root
|
||||
#- platy:village/root
|
||||
on-leave:
|
||||
# What the plugin should reset when the player leaves or is kicked from an area
|
||||
# Reset Money - if this is true, will reset the player's money to the starting money
|
||||
|
Loading…
Reference in New Issue
Block a user