mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-12-05 01:03:44 +01:00
Rovers now take damage and teleport away when it is thundering.
And fix somewhere else that ignored thunder.
This commit is contained in:
parent
b582afeb1f
commit
ad21b3ecc3
@ -14,7 +14,7 @@ function mcl_burning.is_burning(obj)
|
|||||||
end
|
end
|
||||||
|
|
||||||
function mcl_burning.is_affected_by_rain(obj)
|
function mcl_burning.is_affected_by_rain(obj)
|
||||||
return mcl_weather.get_weather() == "rain" and mcl_weather.is_outdoor(obj:get_pos())
|
return mcl_weather.rain.raining and mcl_weather.is_outdoor(obj:get_pos())
|
||||||
end
|
end
|
||||||
|
|
||||||
function mcl_burning.get_collisionbox(obj, smaller, storage)
|
function mcl_burning.get_collisionbox(obj, smaller, storage)
|
||||||
|
@ -157,7 +157,7 @@ mcl_mobs.register_mob("mobs_mc:rover", {
|
|||||||
local enderpos = self.object:get_pos()
|
local enderpos = self.object:get_pos()
|
||||||
local dim = mcl_worlds.pos_to_dimension(enderpos)
|
local dim = mcl_worlds.pos_to_dimension(enderpos)
|
||||||
if dim == "overworld" then
|
if dim == "overworld" then
|
||||||
if mcl_weather.state == "rain" or mcl_weather.state == "lightning" then
|
if mcl_weather.rain.raining then
|
||||||
local damage = true
|
local damage = true
|
||||||
local enderpos = self.object:get_pos()
|
local enderpos = self.object:get_pos()
|
||||||
enderpos.y = enderpos.y+2.89
|
enderpos.y = enderpos.y+2.89
|
||||||
|
Loading…
Reference in New Issue
Block a user