From 689c04bbd5011fdd5ddbdc54092a622e998653c9 Mon Sep 17 00:00:00 2001 From: Fulldroper <40297614+Fulldroper@users.noreply.github.com> Date: Sun, 11 Oct 2026 09:55:55 +0300 Subject: [PATCH] Plot borders: state land is not flashed on entering; an unbuilt road is shown only to road builders and operators Co-Authored-By: Claude Opus 5.5 --- index.toml | 2 +- kubejs/client_scripts/createrp_plots.js | 3 +++ pack.toml | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/index.toml b/index.toml index 4177332..e9463b0 100644 --- a/index.toml +++ b/index.toml @@ -814,7 +814,7 @@ hash = "db4c4a8ab49265f6e8e456f495800ea148b133b18a3242aabca30b98ab7f784f" [[files]] file = "kubejs/client_scripts/createrp_plots.js" -hash = "4efdcd2dca1e5c3baa1ac523803ecbe86b93079d56be93f86c96a070a1d29c5f" +hash = "2a4686d252bd289fd99bde461bdfe3e2215cf35640f36e0610737730016ca2a0" [[files]] file = "kubejs/client_scripts/createrp_ponder.js" diff --git a/kubejs/client_scripts/createrp_plots.js b/kubejs/client_scripts/createrp_plots.js index 1bd93e5..a10d067 100644 --- a/kubejs/client_scripts/createrp_plots.js +++ b/kubejs/client_scripts/createrp_plots.js @@ -18,6 +18,8 @@ const WALL_HALF = 1 / 16 // пів товщини стіни: у пло let rpPlots = [] // { id, kind, walls: [[x1, z1, x2, z2], …] } let rpByChunk = {} // "cx,cz" -> індекс у rpPlots +// державну землю при вході не підсвічуємо — її видно лише з довідником у руці +const RP_QUIET = { reserved: true, road: true, road_built: true, state_mine: true, state: true } let rpHere = '' let rpShowUntil = 0 let rpTick = 0 @@ -78,6 +80,7 @@ function rpDraw () { var here = '' for (var n = 0; n < rpPlots.length && here === ''; n++) { var cells = rpPlots[n].cells + if (RP_QUIET[rpPlots[n].kind]) continue for (var k = 0; k < cells.length; k++) if (cells[k][0] == cx && cells[k][1] == cz) { here = rpPlots[n].id; break } } if (here !== rpHere) { rpHere = here; if (here !== '') rpShowUntil = rpTick + SHOW_TICKS } diff --git a/pack.toml b/pack.toml index 327fe45..4a9fb50 100644 --- a/pack.toml +++ b/pack.toml @@ -6,7 +6,7 @@ pack-format = "packwiz:1.1.0" [index] file = "index.toml" hash-format = "sha256" -hash = "f3e15d8ad0a056c06329546314d374d165bb6cb3218c1e2de8e1cb62badcda5b" +hash = "254c541987e989c7e0e7ee02b0a7719151f1a5c83b2d57af518551f47ddaf969" [versions] minecraft = "1.21.1"