From ed7b346bde53b009205e73a9f32d4bc234deac22 Mon Sep 17 00:00:00 2001 From: flux <25628292+fluxionary@users.noreply.github.com> Date: Fri, 17 Jun 2022 10:16:24 -0700 Subject: [PATCH] add compatability with reworked moreblocks/stairplus --- app/index.html | 1 + app/js/components/item-detail.js | 3 ++ app/js/components/nav-bar.js | 8 +++++ app/js/components/stairsplus-list.js | 47 ++++++++++++++++++++++++++++ app/js/main.js | 3 ++ items.lua | 11 +++++-- mod.conf | 2 +- readme.md | 1 + 8 files changed, 72 insertions(+), 4 deletions(-) create mode 100644 app/js/components/stairsplus-list.js diff --git a/app/index.html b/app/index.html index 622f1fd..26255a6 100644 --- a/app/index.html +++ b/app/index.html @@ -39,6 +39,7 @@ + diff --git a/app/js/components/item-detail.js b/app/js/components/item-detail.js index 746702c..194be6b 100644 --- a/app/js/components/item-detail.js +++ b/app/js/components/item-detail.js @@ -44,6 +44,9 @@ Vue.component("item-detail", { Circular-saw + + Circular-saw + Technic CNC diff --git a/app/js/components/nav-bar.js b/app/js/components/nav-bar.js index 36cd087..e4f2a61 100644 --- a/app/js/components/nav-bar.js +++ b/app/js/components/nav-bar.js @@ -3,6 +3,9 @@ Vue.component("nav-bar", { has_moreblocks: function(){ return mtinfo.items["moreblocks:circular_saw"]; }, + has_stairsplus: function(){ + return mtinfo.items["stairsplus:circular_saw"]; + }, has_technic_cnc: function(){ return mtinfo.items["technic:cnc"]; } @@ -36,6 +39,11 @@ Vue.component("nav-bar", { Moreblocks + +