From 1a701cd391743f7c1c01b982cfee86214463a0e9 Mon Sep 17 00:00:00 2001 From: Evert Prants Date: Sat, 16 Apr 2022 10:50:22 +0300 Subject: [PATCH] oops --- src/client/object/model/pony.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/client/object/model/pony.ts b/src/client/object/model/pony.ts index 3212904..018aca5 100644 --- a/src/client/object/model/pony.ts +++ b/src/client/object/model/pony.ts @@ -124,6 +124,10 @@ export class PonyEntity { } public jump() { + if (!this.onFloor) { + return; + } + this.velocity.y = 12; }