forked from VoxeLibre/VoxeLibre
Rovers now take damage and teleport away when it is thundering.
And fix somewhere else that ignored thunder.
This commit is contained in:
parent
253a06fa08
commit
2ae7536038
|
@ -14,7 +14,7 @@ function mcl_burning.is_burning(obj)
|
|||
end
|
||||
|
||||
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
|
||||
|
||||
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 dim = mcl_worlds.pos_to_dimension(enderpos)
|
||||
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 enderpos = self.object:get_pos()
|
||||
enderpos.y = enderpos.y+2.89
|
||||
|
|
Loading…
Reference in New Issue