import{getModeId as e,setRenderPositionValue as s}from"../render.js";class o{constructor(){this.version=1}upgrade(o,t){if(t.nameTag="",o){o.setDisplayKey(t,t.dimension.getBlock(t.location),!0),o.setDrawerLocked(t,!1);for(const n of o.allowedHands){const r=o.getStackInDrawer(t,n);if(!r)continue;const a=e(r.typeId);s(t,n,a),o.onStackSet(t,n,r)}o.updateDisplay(t)}}}class t{constructor(){this.version=2}upgrade(e,s){e.refreshDisplay(s)}}const n="ftb_sd:version",r=2,a=[new o,new t];export{r as CURRENT_VERSION,o as V1Updater,t as V2Updater,a as VERSIONS,n as VERSION_IDENTITY};
