Update Fork #1

Merged
chmodsayshello merged 696 commits from MineClone5/MineClone5:master into master 2022-03-23 14:40:26 +01:00
1 changed files with 2 additions and 2 deletions
Showing only changes of commit b3059aecba - Show all commits

View File

@ -34,9 +34,9 @@ local function player_collision(player)
local width = .75 local width = .75
for _,object in pairs(minetest.get_objects_inside_radius(pos, width)) do for _,object in pairs(minetest.get_objects_inside_radius(pos, width)) do
local luaentity = object:get_luaentity()
if object and ((mcl_util and mcl_util.is_player(object)) if object and ((mcl_util and mcl_util.is_player(object))
or (object:get_luaentity()._cmi_is_mob == true and object ~= player)) then or (luaentity and luaentity._cmi_is_mob == true and object ~= player)) then
local pos2 = object:get_pos() local pos2 = object:get_pos()
local vec = {x = pos.x - pos2.x, z = pos.z - pos2.z} local vec = {x = pos.x - pos2.x, z = pos.z - pos2.z}