summaryrefslogtreecommitdiff
path: root/src/main/java/net/uomc/mineshaft/Portal.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/net/uomc/mineshaft/Portal.java')
-rw-r--r--src/main/java/net/uomc/mineshaft/Portal.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/net/uomc/mineshaft/Portal.java b/src/main/java/net/uomc/mineshaft/Portal.java
index 2d3df02..499bdb4 100644
--- a/src/main/java/net/uomc/mineshaft/Portal.java
+++ b/src/main/java/net/uomc/mineshaft/Portal.java
@@ -53,13 +53,13 @@ public class Portal extends CooldownCommand {
em.setColor(PeelingUtils.hex2Rgb("#8947e8"));
em.setThumbnail(COMMAND_IMAGE);
- if (bot.getPickaxes().isNether(e.getMember())) {
- bot.getPickaxes().setNether(e.getMember(), false);
+ if (bot.getPlayerStats().isNether(e.getMember())) {
+ bot.getPlayerStats().setNether(e.getMember(), false);
em.setDescription("You go through the potal... everything is back to normal\n\n**You are now in the overworld**");
em.setImage(OVERWORLD_IMAGE);
} else {
- bot.getPickaxes().setNether(e.getMember(), true);
+ bot.getPlayerStats().setNether(e.getMember(), true);
em.setDescription("You go through the potal... things look different on this side...\n\n**You are now in the nether**");
em.setFooter(COMMAND_IMAGE);
em.setImage(NETHER_IMAGE);