diff --git a/cypress/integration/__image_snapshots__/Loads & renders singleplayer #0.png b/cypress/integration/__image_snapshots__/Loads & renders singleplayer #0.png deleted file mode 100644 index ea42d86f..00000000 Binary files a/cypress/integration/__image_snapshots__/Loads & renders singleplayer #0.png and /dev/null differ diff --git a/cypress/integration/__image_snapshots__/superflat-world #0.png b/cypress/integration/__image_snapshots__/superflat-world #0.png new file mode 100644 index 00000000..58f2bd21 Binary files /dev/null and b/cypress/integration/__image_snapshots__/superflat-world #0.png differ diff --git a/cypress/integration/index.spec.ts b/cypress/integration/index.spec.ts index f2aa90c0..68944b2e 100644 --- a/cypress/integration/index.spec.ts +++ b/cypress/integration/index.spec.ts @@ -49,7 +49,7 @@ it('Loads & renders zip world', () => { setLocalStorageSettings() // todo replace with data-test cy.get('#title-screen').find('[data-test-id="select-file-folder"]', { includeShadowDom: true, }).click({ shiftKey: true }) - cy.get('input[type="file"]').selectFile('cypress/fixtures/superflat.zip', { force: true }) + cy.get('input[type="file"]').selectFile('cypress/superflat.zip', { force: true }) // todo implement load event cy.wait(12000) cy.get('body').toMatchImageSnapshot({ diff --git a/cypress/superflat.zip b/cypress/superflat.zip new file mode 100644 index 00000000..10fc9f46 Binary files /dev/null and b/cypress/superflat.zip differ diff --git a/minecraft-server.mjs b/minecraft-server.mjs index 1a43e8d7..840346b8 100644 --- a/minecraft-server.mjs +++ b/minecraft-server.mjs @@ -7,9 +7,9 @@ const serverOptions = { ...defaultOptions, 'online-mode': false, 'logging': false, - 'gameMode': 1, + 'gameMode': 0, 'difficulty': 0, - 'worldFolder': null, + 'worldFolder': false, // todo set sid, disable entities auto-spawn 'generation': { 'name': 'superflat',