aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbowser0000 <bowser0000@gmail.com>2021-08-07 15:57:44 -0400
committerbowser0000 <bowser0000@gmail.com>2021-08-07 15:57:44 -0400
commit5a045d7805b0708e2baa9db648130137be986e9a (patch)
treed667224070556880e358b025c98348db2c37468b /src
parent4ef36d87f423c021891075e8015b5f20760510fd (diff)
downloadSkyblockMod-5a045d7805b0708e2baa9db648130137be986e9a.tar.gz
SkyblockMod-5a045d7805b0708e2baa9db648130137be986e9a.tar.bz2
SkyblockMod-5a045d7805b0708e2baa9db648130137be986e9a.zip
Add more info to open skill menu warning
Diffstat (limited to 'src')
-rw-r--r--src/main/java/me/Danker/features/ColouredNames.java3
-rw-r--r--src/main/java/me/Danker/features/Skill50Display.java2
-rw-r--r--src/main/java/me/Danker/features/SkillTracker.java2
3 files changed, 4 insertions, 3 deletions
diff --git a/src/main/java/me/Danker/features/ColouredNames.java b/src/main/java/me/Danker/features/ColouredNames.java
index cba327a..d0daf2a 100644
--- a/src/main/java/me/Danker/features/ColouredNames.java
+++ b/src/main/java/me/Danker/features/ColouredNames.java
@@ -5,6 +5,7 @@ import me.Danker.commands.ToggleCommand;
import me.Danker.utils.Utils;
import net.minecraft.entity.Entity;
import net.minecraft.entity.EntityLivingBase;
+import net.minecraft.entity.item.EntityArmorStand;
import net.minecraft.util.ChatComponentText;
import net.minecraft.util.EnumChatFormatting;
import net.minecraft.util.IChatComponent;
@@ -62,7 +63,7 @@ public class ColouredNames {
if (!ToggleCommand.customColouredNames || !Utils.inSkyblock) return;
Entity entity = event.entity;
- if (entity.hasCustomName()) {
+ if (entity instanceof EntityArmorStand && entity.hasCustomName()) {
for (String user : users) {
if (entity.getCustomNameTag().contains(user)) {
entity.setCustomNameTag(replaceName(entity.getCustomNameTag(), user, getColourFromName(user)));
diff --git a/src/main/java/me/Danker/features/Skill50Display.java b/src/main/java/me/Danker/features/Skill50Display.java
index 54afb3a..5a58b0c 100644
--- a/src/main/java/me/Danker/features/Skill50Display.java
+++ b/src/main/java/me/Danker/features/Skill50Display.java
@@ -115,7 +115,7 @@ public class Skill50Display {
@SubscribeEvent
public void renderPlayerInfo(RenderOverlay event) {
if (!Utils.skillsInitialized() && Utils.inSkyblock) {
- new TextRenderer(Minecraft.getMinecraft(), EnumChatFormatting.RED + "Please open the skill menu to use skill features.", MoveCommand.skill50XY[0], MoveCommand.skill50XY[0], ScaleCommand.skill50Scale);
+ new TextRenderer(Minecraft.getMinecraft(), EnumChatFormatting.RED + "Please open the skill menu to use skill features. (/skills)", MoveCommand.skill50XY[0], MoveCommand.skill50XY[0], ScaleCommand.skill50Scale);
return;
}
diff --git a/src/main/java/me/Danker/features/SkillTracker.java b/src/main/java/me/Danker/features/SkillTracker.java
index 9438b3d..3d932d0 100644
--- a/src/main/java/me/Danker/features/SkillTracker.java
+++ b/src/main/java/me/Danker/features/SkillTracker.java
@@ -169,7 +169,7 @@ public class SkillTracker {
public void renderPlayerInfo(RenderOverlay event) {
if (showSkillTracker && Utils.inSkyblock) {
if (!Utils.skillsInitialized()) {
- new TextRenderer(Minecraft.getMinecraft(), EnumChatFormatting.RED + "Please open the skill menu to use skill features.", MoveCommand.skillTrackerXY[0], MoveCommand.skillTrackerXY[0], ScaleCommand.skillTrackerScale);
+ new TextRenderer(Minecraft.getMinecraft(), EnumChatFormatting.RED + "Please open the skill menu to use skill features. (/skills)", MoveCommand.skillTrackerXY[0], MoveCommand.skillTrackerXY[0], ScaleCommand.skillTrackerScale);
return;
}