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 1 additions and 0 deletions
Showing only changes of commit 806edcda19 - Show all commits

View File

@ -214,6 +214,7 @@ end
--a function used for despawning mobs --a function used for despawning mobs
mobs.check_for_player_within_area = function(self, radius) mobs.check_for_player_within_area = function(self, radius)
local pos1 = self.object:get_pos() local pos1 = self.object:get_pos()
if not pos1 then return end
--get players in radius --get players in radius
for _,player in pairs(minetest_get_connected_players()) do for _,player in pairs(minetest_get_connected_players()) do
if player and player:get_hp() > 0 then if player and player:get_hp() > 0 then