Skip to content

Commit

Permalink
Remove "Add Enemy Height to World Offset"
Browse files Browse the repository at this point in the history
  • Loading branch information
GreenComfyTea committed Apr 26, 2024
1 parent 255b704 commit ae1153e
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions reframework/autorun/Health_Bars/enemy_handler.lua
Expand Up @@ -375,12 +375,7 @@ function this.draw_enemies()
goto continue;
end

local height_add = 0;
if cached_config.settings.add_enemy_height_to_world_offset then
height_add = enemy.height;
end

local world_offset = Vector3f.new(cached_config.world_offset.x, cached_config.world_offset.y + height_add, cached_config.world_offset.z);
local world_offset = Vector3f.new(cached_config.world_offset.x, cached_config.world_offset.y, cached_config.world_offset.z);

local position_on_screen = draw.world_to_screen(enemy.position + world_offset);
if position_on_screen == nil then
Expand Down

0 comments on commit ae1153e

Please sign in to comment.