MCPcopy Create free account
hub / github.com/FSGModding/FSG_Mod_Assistant / doesModConflict

Method doesModConflict

renderer/renderJS/main_ui_lib.js:2187–2199  ·  view source on GitHub ↗
(mod)

Source from the content-addressed store, hash-verified

2185 }
2186
2187 doesModConflict(mod) {
2188 if ( this.selectedDest.size === 0 ) { return true }
2189
2190 const thisKey = [...this.selectedDest][0]
2191
2192 for ( const modKey of window.state.track.lastPayload.modList[thisKey].modSet ) {
2193 const checkMod = window.state.track.lastPayload.modList[thisKey].mods[modKey]
2194 if ( mod.fileDetail.shortName === checkMod.fileDetail.shortName && mod.fileDetail.isFolder === checkMod.fileDetail.isFolder ) {
2195 return true
2196 }
2197 }
2198 return false
2199 }
2200
2201 // MARK: update display
2202 updateButton() {

Callers 1

showModMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected