9
0
mirror of https://github.com/Auxilor/Reforges.git synced 2025-12-27 10:59:23 +00:00

Fixed miscellaneous bugs

This commit is contained in:
Auxilor
2021-10-02 12:12:12 +01:00
parent f46bd15c94
commit 017f6a8ab0
3 changed files with 16 additions and 4 deletions

View File

@@ -23,7 +23,6 @@ public abstract class Effect implements Listener, Watcher {
/**
* The effect ID.
*/
@Getter
private final String id;
/**
@@ -36,6 +35,15 @@ public abstract class Effect implements Listener, Watcher {
Effects.addNewEffect(this);
}
/**
* Get the effect ID.
*
* @return The ID.
*/
public String getId() {
return id;
}
/**
* Generate a UUID with a specified index.
*

View File

@@ -25,6 +25,10 @@ class ConditionInBiome: Condition("in_biome") {
}
override fun isConditionMet(player: Player, config: JSONConfig): Boolean {
return config.getStrings("biomes").contains(player.world.getBiome(player.location).name.lowercase())
return config.getStrings("biomes").contains(player.world.getBiome(
player.location.blockX,
player.location.blockY,
player.location.blockZ
).name.lowercase())
}
}

View File

@@ -254,7 +254,7 @@
"id": "prospecting",
"name": "<gradient:#00B4DB>Prospecting</gradient:#0083B0>",
"description": [
"&a+5% &fChance to get &e2$&f for mining a block"
"&a+5% &fChance to get &e\u00242&f for mining a block"
],
"targets": [
"pickaxe"
@@ -303,7 +303,7 @@
"id": "rich",
"name": "<gradient:#DBDBDB>Rich</gradient:#F2F2F2>",
"description": [
"&a+50$ &fFor each mob kill"
"&a+\u002450 &fFor each mob kill"
],
"targets": [
"trident",