Commit graph

2 commits

Author SHA1 Message Date
isokissa3 78add0a96f Fixed nether-portals flag on 1.14
This needs clean up later...
2019-08-05 22:17:40 +03:00
isokissa3 eb6b63b63f Block sending remove mob effect packet to clients when updating give-effects potion effect timers
Due to how CraftBukkit internally works is that when you add dublicate potion effect type it will be ignored unless you force it. But that causes some issues as the potion effect is removed (for really short period of time) but the packet is still sent to client. After this the new potion effect timer is sent on add mob effect packet. This will cause the nausea effect to reset everytime on clients 1.9 and above. This also fixes latency issues where the different packets dont arrive excatly at the same time and causes blinking on night vision effect.

This is fixed by using ProtocolLib to cancel the sending of remove mob effect packet when we are updating those effects.

On servers with 1.13 that are missing ProtocolLib alternative method will be used
2018-11-30 22:20:32 +02:00