Fix by @md-5 - https://github.com/SpigotMC/Spigot/commit/4edd7598b84af515ec26b6fea5b1d7996bf334cf