Fix typo/logic error in previous commit

Remapped by Srg2Source from Bukkit/CraftBukkit@7d19b67e256b0356a2b7affd169ac672e422ae5f