https://github.com/Bukkit/CraftBukkit/pull/1323/files#r9364200