1
0
mirror of https://codeberg.org/tenplus1/mobs_redo.git synced 2025-06-07 04:20:26 +02:00

remove self.attack_players check from do_punch

This commit is contained in:
tenplus1 2025-05-20 08:13:06 +01:00
parent f44441c580
commit 5ed3a34cf3

View File

@ -18,7 +18,7 @@ end
-- global table
mobs = {
mod = "redo", version = "20250517",
mod = "redo", version = "20250520",
spawning_mobs = {}, translate = S,
node_snow = has(core.registered_aliases["mapgen_snow"])
or has("mcl_core:snow") or has("default:snow") or "air",
@ -2729,7 +2729,7 @@ function mob_class:on_punch(hitter, tflp, tool_capabilities, dir, damage)
-- call for help and attack puncher
if self.passive == false and self.state ~= "flop"
and not self.child and self.attack_players
and not self.child --and self.attack_players
and not (is_player(hitter) and hitter_name == self.owner)
and not is_invisible(self, hitter_name)
and self.object ~= hitter then