Skip to content

Commit

Permalink
Remove now-redundant message in StaffCastEnv
Browse files Browse the repository at this point in the history
  • Loading branch information
vgskye committed Oct 7, 2024
1 parent ebaf130 commit a63248a
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit a63248a

Please sign in to comment.