check if in map

This commit is contained in:
okx-code
2024-02-29 04:01:42 +00:00
parent b6adf3200c
commit bb53447ebe

View File

@@ -66,7 +66,7 @@ public class AntiDerailment extends BasicHack {
return;
}
if (minecart.getMaxSpeed() == 0.4D) {
if (minecart.getMaxSpeed() == 0.4D || !previousTickMinecartVelocity.containsKey(minecart)) {
previousTickMinecartVelocity.put(minecart, minecart.getVelocity());
return;
}