cuberite / cuberite

A lightweight, fast and extensible game server for Minecraft

Home Page:https://cuberite.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Arrows are not slowed down while in water

icejuice-enjoyer opened this issue · comments

Client version: Vanilla 1.12.2
Server OS: I found this bug on the US demo server, so I do not know

Expected behavior

Arrows and other projectiles should slow down after a few blocks while in water.

Actual behavior

When trying to shoot a fully-charged bow and arrow while submerged, the arrow flies underwater and has the exact same behavior as it would if you shot it in air.

commented

It's #5036 duplicate and should be fixed on main branch. Someone must confirm it for fresh build.

I made the PR to solve this issue and i just tested it again. I think i should change the slowdown multiplier to slow more the arrow.
It seems to be more accurate with a ARROW_WATER_FRICTION of 20 instead of 50.