From 9b1ae2512966bc53d063c1becb1b338dcc858cc4 Mon Sep 17 00:00:00 2001 From: Azgaar Date: Mon, 26 Apr 2021 12:23:28 +0300 Subject: [PATCH] new resources --- modules/ui/general.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ui/general.js b/modules/ui/general.js index 3f21219d..1cd58747 100644 --- a/modules/ui/general.js +++ b/modules/ui/general.js @@ -138,7 +138,7 @@ function showMapTooltip(point, e, i, g) { } if (group === "goods") { - const id = +e.target.getAttribute("href").slice(10); + const id = +e.target.dataset.i; const resource = pack.resources.find(resource => resource.i === id); tip("Resource: " + resource.name); return;