diff --git a/menu/background.png b/menu/background.png new file mode 100644 index 0000000..001aa5b Binary files /dev/null and b/menu/background.png differ diff --git a/menu/header.png b/menu/header.png index 037f1c0..78480b9 100644 Binary files a/menu/header.png and b/menu/header.png differ diff --git a/mods/mobs/init.lua b/mods/mobs/init.lua index 292f9fd..3696461 100644 --- a/mods/mobs/init.lua +++ b/mods/mobs/init.lua @@ -67,7 +67,7 @@ function mobs.register_mob(name, def) self.object:setyaw(yaw) - if minetest.line_of_sight(self.object:getpos(), obj:getpos(), 1) then + if minetest.line_of_sight(vector.add(self.object:getpos(), vector.new(0, 0.5, 0)), vector.add(obj:getpos(), vector.new(0, 0.5, 0)), 1) then obj:punch(self.object, 10, def.dmg, nil) found = true break