Skip to content

Commit

Permalink
rair server should not be required to export a mod
Browse files Browse the repository at this point in the history
  • Loading branch information
seiyria committed Sep 12, 2024
1 parent 5804f7c commit d37ff5c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
8 changes: 0 additions & 8 deletions app/ipc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -205,14 +205,6 @@ export function setupIPC(sendToUI: SendToUI) {
});

ipcMain.on('SAVE_MOD', (e: any, { modData, shouldExport }: any) => {
if (shouldExport && !fs.existsSync(`${baseUrl}/resources/rair`)) {
sendToUI('notify', {
type: 'error',
text: 'Mod cannot be formatted for saving, install Rair Server first!',
});
return;
}

const extname = shouldExport ? 'Rair Mods' : 'Rair In-Dev Mods';
const ext = shouldExport ? 'rairmod' : 'rairdevmod';

Expand Down
1 change: 1 addition & 0 deletions src/interfaces/effect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ export interface IStatusEffectInfo {
canOverlapUniqueIfEquipped?: boolean;
charges?: number;
statChanges: Partial<Record<StatType, number>>;
spriteChange?: number;
}

export interface IEffectTooltip {
Expand Down

0 comments on commit d37ff5c

Please sign in to comment.