Add files via upload

master^2
TheTermos 2019-12-09 17:46:23 +01:00 committed by GitHub
parent b70e7d59a9
commit ecf21d6fba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -820,11 +820,11 @@ function mobkit.physics(self)
local snodepos = mobkit.get_node_pos(spos)
local surfnode = mobkit.nodeatpos(spos)
while surfnode and surfnode.drawtype == 'liquid' do
surfnodename = surfnode.name
surface = snodepos.y+0.5
if surface > spos.y+self.height then break end
snodepos.y = snodepos.y+1
surfnode = mobkit.nodeatpos(snodepos)
if surfnode then surfnodename = surfnode.name end
end
self.isinliquid = surfnodename
if surface then -- standing in liquid