Workaround for BUKKIT-5216

Bukkit PR for fix - https://github.com/Bukkit/CraftBukkit/pull/1374