Skip to content

Commit

Permalink
fix knockback CME
Browse files Browse the repository at this point in the history
  • Loading branch information
iron431 committed Oct 31, 2024
1 parent b67e59d commit 8b19b1a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ neogradle.subsystems.parchment.mappingsVersion=2024.07.07

# Irons Mod
mod_id=irons_spellbooks
mod_version=1.21-3.8.3
mod_version=1.21-3.8.4
mod_group_id=io.redspace

# Irons mods.toml
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public static void ignoreNextKnockback(LivingEntity livingEntity) {
if (livingEntity.getServer() != null) {
var tickCount = livingEntity.getServer().getTickCount();
//help manage memory
knockbackImmunes.entrySet().stream().filter(entry -> tickCount - entry.getValue() >= 10).forEach(entry -> knockbackImmunes.remove(entry.getKey()));
knockbackImmunes.entrySet().stream().filter(entry -> tickCount - entry.getValue() >= 10).toList().forEach(entry -> knockbackImmunes.remove(entry.getKey()));
//enter entity
knockbackImmunes.put(livingEntity.getUUID(), tickCount);
}
Expand Down

0 comments on commit 8b19b1a

Please sign in to comment.