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:
@@ -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.
|
||||
*
|
||||
|
||||
@@ -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())
|
||||
}
|
||||
}
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user