Skip to content

Commit 8155f9d

Browse files
committed
fix: accidental removal of suffocation | fixes #165
1 parent e56eeab commit 8155f9d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/main/java/micdoodle8/mods/galacticraft/core/event/EventHandlerGC.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@
115115
import micdoodle8.mods.galacticraft.core.tick.TickHandlerServer;
116116
import micdoodle8.mods.galacticraft.core.util.ASMUtil;
117117
import micdoodle8.mods.galacticraft.core.util.ConfigManagerCore;
118+
import micdoodle8.mods.galacticraft.core.util.DamageSourceGC;
118119
import micdoodle8.mods.galacticraft.core.util.GCCoreUtil;
119120
import micdoodle8.mods.galacticraft.core.util.OxygenUtil;
120121
import micdoodle8.mods.galacticraft.core.util.PlayerUtil;
@@ -377,6 +378,8 @@ public void entityLivingEvent(LivingEvent.LivingUpdateEvent event)
377378
return;
378379
}
379380

381+
entityLiving.attackEntityFrom(DamageSourceGC.oxygenSuffocation, Math.max(ConfigManagerCore.suffocationDamage / 2, 1));
382+
380383
GCCoreOxygenSuffocationEvent suffocationEventPost = new GCCoreOxygenSuffocationEvent.Post(entityLiving);
381384
MinecraftForge.EVENT_BUS.post(suffocationEventPost);
382385
}

0 commit comments

Comments
 (0)