From f7a1d72450d2567df6b2f912c60e8e4f0bc600e1 Mon Sep 17 00:00:00 2001 From: MaXFeeD Date: Sat, 2 Mar 2024 23:45:02 +0300 Subject: [PATCH] =?UTF-8?q?fix:=20=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2?= =?UTF-8?q?=D0=BB=D0=B5=D0=BD=D1=8B=20=D0=BC=D0=B5=D1=82=D0=BE=D0=B4=D1=8B?= =?UTF-8?q?=20Entity.getMobile(),=20Entity.health()?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../innercore/coreengine/core-engine.dev.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/main/resources/innercore/coreengine/core-engine.dev.js b/src/main/resources/innercore/coreengine/core-engine.dev.js index 87f37626..2672e0f4 100755 --- a/src/main/resources/innercore/coreengine/core-engine.dev.js +++ b/src/main/resources/innercore/coreengine/core-engine.dev.js @@ -6024,8 +6024,8 @@ var EntityAPI = { setTarget: function(ent, target) { return Entity.setTarget(ent, target); }, - getMobile: function(ent, mobile) { - Entity.isImmobile(ent); + getMobile: function(ent) { + return Entity.isImmobile(ent); }, setMobile: function(ent, mobile) { Entity.setImmobile(ent, !mobile); @@ -6048,16 +6048,16 @@ var EntityAPI = { health: function(entity) { return { get: function() { - return this.getHealth(entity); + return EntityAPI.getHealth(entity); }, set: function(health) { - this.setHealth(entity, health); + EntityAPI.setHealth(entity, health); }, getMax: function() { - return this.getMaxHealth(entity); + return EntityAPI.getMaxHealth(entity); }, setMax: function(health) { - this.setMaxHealth(entity, health); + EntityAPI.setMaxHealth(entity, health); } }; },