TheTermos / mobkit

Entity API for Minetest
MIT License
27 stars 12 forks source link

sinking on flowing water #25

Closed APercy closed 4 years ago

APercy commented 4 years ago

Like I posted at minetest forums:

Based on your excellent Sailing kit I made the Motorboat mod. Testing it I found a problem that affects your sailing kit too, when it sinks at flowing water. After some research I found that the problem is on mobkit and can be bypassed with a edit at line 826, in the while loop of mobkit.physics method. So I put the following:

while surfnode and (surfnode.drawtype == 'liquid' or surfnode.drawtype == 'flowingliquid') do

I believe you must test it on some mobs to ensure that it will not break any other mod.

Thank you for the great work.