Disable soul speed check for now

This commit is contained in:
Nassim Jahnke 2024-06-20 15:31:18 +02:00
parent 5243c1800e
commit 05aa05c5b4
No known key found for this signature in database
GPG Key ID: EF6771C01F6EF02F

View File

@ -92,7 +92,9 @@ public final class PlayerChangeItemListener extends ViaBukkitListener {
case LEGGINGS -> swiftSneakLevel = item != null && swiftSneak != null ? item.getEnchantmentLevel(swiftSneak) : 0;
case BOOTS -> {
depthStriderLevel = item != null && depthStrider != null ? item.getEnchantmentLevel(depthStrider) : 0;
soulSpeedLevel = item != null && soulSpeed != null ? item.getEnchantmentLevel(soulSpeed) : 0;
// TODO This needs continuous ticking for the supporting block as a conditional effect
// and is even more prone to desync from high ping than the other attributes
//soulSpeedLevel = item != null && soulSpeed != null ? item.getEnchantmentLevel(soulSpeed) : 0;
}
}
storage.setEnchants(player.getEntityId(), connection, efficiencyLevel, soulSpeedLevel, swiftSneakLevel, depthStriderLevel);