mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-27 23:27:59 +01:00
level < 0 means never show this page
This commit is contained in:
parent
15703db16c
commit
85bb51ed78
1 changed files with 2 additions and 2 deletions
|
@ -132,7 +132,7 @@ public class DynamicContent implements Content {
|
||||||
|
|
||||||
compile();
|
compile();
|
||||||
TextRenderer font = MinecraftClient.getInstance().textRenderer;
|
TextRenderer font = MinecraftClient.getInstance().textRenderer;
|
||||||
boolean needsMoreXp = Pony.of(MinecraftClient.getInstance().player).getLevel().get() < level;
|
boolean needsMoreXp = level < 0 || Pony.of(MinecraftClient.getInstance().player).getLevel().get() < level;
|
||||||
|
|
||||||
matrices.push();
|
matrices.push();
|
||||||
matrices.translate(bounds.left, bounds.top - 10, mouseY);
|
matrices.translate(bounds.left, bounds.top - 10, mouseY);
|
||||||
|
@ -144,7 +144,7 @@ public class DynamicContent implements Content {
|
||||||
matrices.translate(bounds.left, bounds.top - 10, mouseY);
|
matrices.translate(bounds.left, bounds.top - 10, mouseY);
|
||||||
matrices.translate(0, 12, 0);
|
matrices.translate(0, 12, 0);
|
||||||
matrices.scale(0.8F, 0.8F, 1);
|
matrices.scale(0.8F, 0.8F, 1);
|
||||||
font.draw(matrices, Text.literal("Level: " + (level + 1)).formatted(Formatting.DARK_GREEN), 0, 0, mouseY);
|
font.draw(matrices, Text.literal(level < 0 ? "Level: ???" : "Level: " + (level + 1)).formatted(Formatting.DARK_GREEN), 0, 0, mouseY);
|
||||||
matrices.pop();
|
matrices.pop();
|
||||||
|
|
||||||
matrices.push();
|
matrices.push();
|
||||||
|
|
Loading…
Reference in a new issue