File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
src/main/java/micdoodle8/mods/galacticraft/core/event Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change 115
115
import micdoodle8 .mods .galacticraft .core .tick .TickHandlerServer ;
116
116
import micdoodle8 .mods .galacticraft .core .util .ASMUtil ;
117
117
import micdoodle8 .mods .galacticraft .core .util .ConfigManagerCore ;
118
+ import micdoodle8 .mods .galacticraft .core .util .DamageSourceGC ;
118
119
import micdoodle8 .mods .galacticraft .core .util .GCCoreUtil ;
119
120
import micdoodle8 .mods .galacticraft .core .util .OxygenUtil ;
120
121
import micdoodle8 .mods .galacticraft .core .util .PlayerUtil ;
@@ -377,6 +378,8 @@ public void entityLivingEvent(LivingEvent.LivingUpdateEvent event)
377
378
return ;
378
379
}
379
380
381
+ entityLiving .attackEntityFrom (DamageSourceGC .oxygenSuffocation , Math .max (ConfigManagerCore .suffocationDamage / 2 , 1 ));
382
+
380
383
GCCoreOxygenSuffocationEvent suffocationEventPost = new GCCoreOxygenSuffocationEvent .Post (entityLiving );
381
384
MinecraftForge .EVENT_BUS .post (suffocationEventPost );
382
385
}
You can’t perform that action at this time.
0 commit comments