diff --git a/src/ts/common/entityUtils.ts b/src/ts/common/entityUtils.ts index 4b7ded2..8baaa32 100644 --- a/src/ts/common/entityUtils.ts +++ b/src/ts/common/entityUtils.ts @@ -60,7 +60,7 @@ export function getBoopRect(entity: Entity) { return rect(entity.x + (right ? 0.6 : -0.9) * (sitting ? 0.6 : 1), entity.y - 0.2, 0.3, 0.4); } -export function getkissRect(entity: Entity) { +export function getKissRect(entity: Entity) { const right = hasFlag(entity.state, EntityState.FacingRight); const sitting = isPonySitting(entity); return rect(entity.x + (right ? 0.4 : -0.8) * (sitting ? 0.6 : 1), entity.y - 0.225, 0.4, 0.45); diff --git a/src/ts/server/playerUtils.ts b/src/ts/server/playerUtils.ts index 35441f1..f0c7c5b 100644 --- a/src/ts/server/playerUtils.ts +++ b/src/ts/server/playerUtils.ts @@ -32,7 +32,7 @@ import { replaceEmojis } from '../client/emoji'; import { expression, parseExpression } from '../common/expressionUtils'; import { canBoopOrKiss, isPonySitting, isPonyStanding, getBoopRect, canStand, isPonyFlying, setPonyState, canSit, - canLie, getkissRect, getSneezeRect + canLie, getKissRect, getSneezeRect } from '../common/entityUtils'; import { withBorder } from '../common/rect'; import { isOnlineFriend } from './services/friends'; @@ -484,7 +484,7 @@ export function kiss(client: IClient, now: number) { if (canPerformAction(client, now) && canBoopOrKiss(client.pony)) { cancelEntityExpression(client.pony); sendAction(client.pony, Action.Kiss); - boopEntity(client, getkissRect(client.pony), false); + boopEntity(client, getKissRect(client.pony), false); client.lastBoopOrKissAction = now + 3400; } }