Skip to content

Commit 9d769a8

Browse files
committed
Dedicated Server Crash Hotfix
Should Fix #15
1 parent 88c42a2 commit 9d769a8

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ apply plugin: 'org.spongepowered.mixin'
1717
apply plugin: 'org.parchmentmc.librarian.forgegradle'
1818
apply plugin: 'maven-publish'
1919

20-
version = '1.0.4'
20+
version = '1.0.5'
2121
group = 'io.redspace.ironsspellbooks'
2222
archivesBaseName = 'irons_spellbooks'
2323

src/main/java/io/redspace/ironsspellbooks/tetra/TetraActualImpl.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
import io.redspace.ironsspellbooks.tetra.effects.ManaSiphonTetraEffect;
77
import net.minecraft.world.entity.ai.attributes.Attribute;
88
import net.minecraft.world.item.ItemStack;
9+
import net.minecraftforge.api.distmarker.Dist;
10+
import net.minecraftforge.api.distmarker.OnlyIn;
911
import net.minecraftforge.event.entity.living.LivingAttackEvent;
1012
import se.mickelus.tetra.blocks.workbench.gui.WorkbenchStatsGui;
1113
import se.mickelus.tetra.gui.stats.StatsHelper;
@@ -16,6 +18,7 @@
1618

1719
public class TetraActualImpl implements ITetraProxy {
1820

21+
@OnlyIn(Dist.CLIENT)
1922
@Override
2023
public void initClient() {
2124

@@ -61,7 +64,7 @@ public void handleLivingAttackEvent(LivingAttackEvent event) {
6164
FreezeTetraEffect.handleLivingAttackEvent(event);
6265
ManaSiphonTetraEffect.handleLivingAttackEvent(event);
6366
}
64-
67+
@OnlyIn(Dist.CLIENT)
6568
private static void createPercentAttributeBar(Attribute attribute, String languageKey) {
6669
IStatGetter statGetter = new StatGetterPercentAttribute(attribute);
6770
GuiStatBar statBar = new GuiStatBar(0, 0, StatsHelper.barLength, attribute.getDescriptionId(), 0, 100, false,

0 commit comments

Comments
 (0)