mirror of
https://github.com/ComfyFactory/ComfyFactorio.git
synced 2025-01-30 04:40:54 +02:00
bugfix
This commit is contained in:
parent
02b72b108f
commit
cda279a007
@ -352,11 +352,10 @@ local function handle_damage_to_players(event)
|
||||
|
||||
-- if not (event.cause.name == 'small-biter') or (event.cause.name == 'small-spitter') or (event.cause.name == 'medium-biter') or (event.cause.name == 'medium-spitter') or (event.cause.name == 'big-biter') or (event.cause.name == 'big-spitter') or (event.cause.name == 'behemoth-biter') or (event.cause.name == 'behemoth-spitter') then return end
|
||||
|
||||
if not event.entity then return end
|
||||
if not event.entity.player or not event.entity.player.valid then return end
|
||||
|
||||
if not (event.entity and event.entity.valid and event.entity.name and event.entity.name == 'character') then return end
|
||||
|
||||
if not event.entity.player or not event.entity.player.valid then return end
|
||||
|
||||
local player_index = event.entity.player.index
|
||||
local player = game.players[player_index]
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user