Skip to content

Commit

Permalink
Dedicated Server Crash Hotfix
Browse files Browse the repository at this point in the history
Should Fix #15
  • Loading branch information
iron431 committed May 2, 2023
1 parent 88c42a2 commit 9d769a8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ apply plugin: 'org.spongepowered.mixin'
apply plugin: 'org.parchmentmc.librarian.forgegradle'
apply plugin: 'maven-publish'

version = '1.0.4'
version = '1.0.5'
group = 'io.redspace.ironsspellbooks'
archivesBaseName = 'irons_spellbooks'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
import io.redspace.ironsspellbooks.tetra.effects.ManaSiphonTetraEffect;
import net.minecraft.world.entity.ai.attributes.Attribute;
import net.minecraft.world.item.ItemStack;
import net.minecraftforge.api.distmarker.Dist;
import net.minecraftforge.api.distmarker.OnlyIn;
import net.minecraftforge.event.entity.living.LivingAttackEvent;
import se.mickelus.tetra.blocks.workbench.gui.WorkbenchStatsGui;
import se.mickelus.tetra.gui.stats.StatsHelper;
Expand All @@ -16,6 +18,7 @@

public class TetraActualImpl implements ITetraProxy {

@OnlyIn(Dist.CLIENT)
@Override
public void initClient() {

Expand Down Expand Up @@ -61,7 +64,7 @@ public void handleLivingAttackEvent(LivingAttackEvent event) {
FreezeTetraEffect.handleLivingAttackEvent(event);
ManaSiphonTetraEffect.handleLivingAttackEvent(event);
}

@OnlyIn(Dist.CLIENT)
private static void createPercentAttributeBar(Attribute attribute, String languageKey) {
IStatGetter statGetter = new StatGetterPercentAttribute(attribute);
GuiStatBar statBar = new GuiStatBar(0, 0, StatsHelper.barLength, attribute.getDescriptionId(), 0, 100, false,
Expand Down

0 comments on commit 9d769a8

Please sign in to comment.