From 099f322fa9631976185683182bcead93e9aec514 Mon Sep 17 00:00:00 2001 From: hydrant Date: Thu, 27 May 2021 23:55:47 +0200 Subject: [PATCH] debug --- ReallifeGamemode.Client/drugs/hanf.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ReallifeGamemode.Client/drugs/hanf.ts b/ReallifeGamemode.Client/drugs/hanf.ts index cc2b28b1..8498db66 100644 --- a/ReallifeGamemode.Client/drugs/hanf.ts +++ b/ReallifeGamemode.Client/drugs/hanf.ts @@ -335,7 +335,8 @@ export default function hanfSystem(globalData: IGlobalData) { mp.events.addDataHandler("hanfData", (entity: EntityMp, value) => { mp.gui.chat.push("neue hanf data"); - if (entity == mp.players.local) { + if (entity.type == 'player' && entity.remoteId == mp.players.local.remoteId) { + mp.gui.chat.push("eigener user"); updateHanf(value); } });