From 3ebc23cc77cd18418a624217e7f1351b81b2d8f3 Mon Sep 17 00:00:00 2001 From: ckcz123 Date: Thu, 29 Jul 2021 13:12:22 +0800 Subject: [PATCH] Tiny fix --- libs/maps.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/maps.js b/libs/maps.js index 29a9e9a1..d70c39c9 100644 --- a/libs/maps.js +++ b/libs/maps.js @@ -927,7 +927,7 @@ maps.prototype._drawBlockInfo = function (blockInfo, x, y, ctx) { if (alpha != null) core.setAlpha(ctx, alpha); if (height > 32) { alpha = null; - if (blockInfo.opacity != null) alpha = core.setAlpha('event2', block.opacity); + if (blockInfo.opacity != null) alpha = core.setAlpha('event2', blockInfo.opacity); core.clearMap('event2', px, py + 32 - height, 32, height - 32) core.drawImage('event2', image, posX * 32, posY * height, 32, height - 32, px, py + 32 - height, 32, height - 32); if (alpha != null) core.setAlpha('event2', alpha);