Skip to content

Commit

Permalink
oopsie
Browse files Browse the repository at this point in the history
  • Loading branch information
iron431 committed Oct 30, 2023
1 parent 951be4e commit 4510dd9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 14 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ mapping_version=2022.11.27-1.19.2

# Irons Mod
mod_id=irons_spellbooks
mod_version=1.19.2-2.0.2
mod_version=1.19.2-2.0.3
mod_group_id=io.redspace.ironsspellbooks

# Irons mods.toml
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -266,19 +266,6 @@ public static void onLivingChangeTarget(LivingChangeTargetEvent event) {
}
}

@SubscribeEvent
public static void testManaEvent(ChangeManaEvent event) {
if (event.getEntity().hasEffect(MobEffects.REGENERATION))
event.setCanceled(true);
else if (event.getEntity().hasEffect(MobEffects.POISON) ){
var diff = event.getNewMana() - event.getOldMana();
if (diff < 0) {
diff *= 2;
event.setNewMana(event.getOldMana() + diff);
}
}
}

@SubscribeEvent
public static void onLivingTakeDamage(LivingDamageEvent event) {
/*
Expand Down

0 comments on commit 4510dd9

Please sign in to comment.