Make it work properly on servers

This commit is contained in:
koolkrafter5 committed 2025-05-05 22:57:53 -04:00
1 parent 9decf95c08
commit 76bfb7dda1
2 files changed
+4 -4

No files matched your search

@@ -26,7 +26,7 @@ import com.google.common.base.Joiner;
import WayofTime.alchemicalWizardry.AlchemicalWizardry;
import WayofTime.alchemicalWizardry.api.alchemy.energy.Reagent;
import WayofTime.alchemicalWizardry.api.soulNetwork.SoulNetworkHandler;
import WayofTime.alchemicalWizardry.api.spell.APISpellHelper;
import WayofTime.alchemicalWizardry.client.nei.widgets.CostInfo;
import WayofTime.alchemicalWizardry.client.nei.widgets.RadiusInfo;
import WayofTime.alchemicalWizardry.client.nei.widgets.ReagentInfo;
@@ -303,7 +303,7 @@ public class NEIMeteorRecipeHandler extends TemplateRecipeHandler {
Rectangle rect = cachedRecipe.costInfo.getRect(gui);
if (rect.contains(mousePos)) {
list.add(StatCollector.translateToLocal("nei.recipe.meteor.cost"));
if (SoulNetworkHandler.getCurrentEssence(mc.thePlayer.getDisplayName()) < cachedRecipe.getCost()) {
if (APISpellHelper.getPlayerLPTag(mc.thePlayer) < cachedRecipe.getCost()) {
list.add(
EnumChatFormatting.RED
+ StatCollector.translateToLocal("nei.recipe.meteor.tooExpensive"));
@@ -15,7 +15,7 @@ import net.minecraft.item.ItemStack;
import org.lwjgl.opengl.GL11;
import WayofTime.alchemicalWizardry.api.items.interfaces.IBloodOrb;
import WayofTime.alchemicalWizardry.api.soulNetwork.SoulNetworkHandler;
import WayofTime.alchemicalWizardry.api.spell.APISpellHelper;
import codechicken.nei.recipe.GuiRecipe;
public class CostInfo {
@@ -57,7 +57,7 @@ public class CostInfo {
prevX = x;
prevY = y;
int currentLP = SoulNetworkHandler.getCurrentEssence(mc.thePlayer.getDisplayName());
int currentLP = APISpellHelper.getPlayerLPTag(mc.thePlayer);
GL11.glPushMatrix();
GL11.glEnable(GL11.GL_BLEND);