SirSquidly / Oceanic-Expanse

A 1.12.2 Minecraft Mod which adds various pieces of ocean-based content.
10 stars 3 forks source link

Drowned do not use player-style swim animations #106

Open SirSquidly opened 2 weeks ago

SirSquidly commented 2 weeks ago

In Version 1.1.1 (specifically commit f92143d27636332781dd83f573a1a23f6ee2246a), some reorganization of Drowned Code leads to Drowned being unable to play their player-style swimming animations when ascending or descending.

This is caused by setupSwimTimeing() only being set within the Serverside, despite the fact the values it sets are required for getClientSwimTime() to occur Clientside. https://github.com/SirSquidly/Oceanic-Expanse/blob/c95f775409277fe7669eee5188a558b1534ed3e9/src/main/java/com/sirsquidly/oe/entity/EntityDrowned.java#L201

Steps To Reproduce:

  1. Have a Drowned within a deep body of Water
  2. Have a Target Mob (Villager or Player) within the water above or below the Drowned, by at least 1.9 blocks
  3. The Drowned will swim towards the Target Mob in the vanilla, static manner