mirror of
https://github.com/Xiao-MoMi/Custom-Crops.git
synced 2025-12-23 17:09:21 +00:00
fix bugs
This commit is contained in:
@@ -25,7 +25,7 @@ public record WaterBar(String left, String empty, String full, String right) {
|
||||
|
||||
public String getWaterBar(int current, int max) {
|
||||
return left +
|
||||
String.valueOf(full).repeat(current) +
|
||||
String.valueOf(full).repeat(Math.min(current, max)) +
|
||||
String.valueOf(empty).repeat(Math.max(max - current, 0)) +
|
||||
right;
|
||||
}
|
||||
|
||||
@@ -43,6 +43,7 @@ public class State {
|
||||
setArg("{x}", String.valueOf(location.getBlockX()));
|
||||
setArg("{y}", String.valueOf(location.getBlockY()));
|
||||
setArg("{z}", String.valueOf(location.getBlockZ()));
|
||||
setArg("{world}", location.getWorld().getName());
|
||||
}
|
||||
|
||||
public Player getPlayer() {
|
||||
|
||||
Reference in New Issue
Block a user