From a63248a2be9c7cfa3b3e3a38e5839a83e1da0a7b Mon Sep 17 00:00:00 2001 From: Skye Date: Mon, 7 Oct 2024 13:56:44 +0900 Subject: [PATCH] Remove now-redundant message in StaffCastEnv --- .../hexcasting/api/casting/eval/env/StaffCastEnv.java | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/Common/src/main/java/at/petrak/hexcasting/api/casting/eval/env/StaffCastEnv.java b/Common/src/main/java/at/petrak/hexcasting/api/casting/eval/env/StaffCastEnv.java index 6fbfa7bcf6..15a1c38261 100644 --- a/Common/src/main/java/at/petrak/hexcasting/api/casting/eval/env/StaffCastEnv.java +++ b/Common/src/main/java/at/petrak/hexcasting/api/casting/eval/env/StaffCastEnv.java @@ -13,7 +13,6 @@ import at.petrak.hexcasting.api.pigment.FrozenPigment; import at.petrak.hexcasting.common.msgs.*; import at.petrak.hexcasting.xplat.IXplatAbstractions; -import net.minecraft.network.chat.Component; import net.minecraft.server.level.ServerPlayer; import net.minecraft.sounds.SoundSource; import net.minecraft.world.InteractionHand; @@ -74,11 +73,7 @@ public long extractMediaEnvironment(long cost) { return 0; var canOvercast = this.canOvercast(); - var remaining = this.extractMediaFromInventory(cost, canOvercast); - if (remaining > 0 && !canOvercast) { - this.caster.sendSystemMessage(Component.translatable("hexcasting.message.cant_overcast")); - } - return remaining; + return this.extractMediaFromInventory(cost, canOvercast); } @Override