From 541dafad020cfd32e99cbc326c65fce08d14c36b Mon Sep 17 00:00:00 2001 From: celeste Date: Fri, 5 Jan 2024 15:28:45 -0700 Subject: [PATCH] add .editorconfig --- .editorconfig | 19 +++++++ src/main/resources/fabric.mod.json | 54 +++++++++---------- .../toggle-toggle-sprint.mixins.json | 1 + 3 files changed, 47 insertions(+), 27 deletions(-) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..a71173d --- /dev/null +++ b/.editorconfig @@ -0,0 +1,19 @@ +[*] +charset = utf-8 +end_of_line = lf +insert_final_newline = true +tab_width = 4 +indent_style = tab + +[*.md] +indent_style = space +indent_size = 2 + +[*.properties] +indent_style = space +indent_size = 2 + +[*.json] +indent_style = space +indent_size = 2 +insert_final_newline = false diff --git a/src/main/resources/fabric.mod.json b/src/main/resources/fabric.mod.json index fb341f7..51489e9 100644 --- a/src/main/resources/fabric.mod.json +++ b/src/main/resources/fabric.mod.json @@ -1,30 +1,30 @@ { - "schemaVersion": 1, - "id": "toggle-toggle-sprint", - "version": "${version}", - "name": "Toggle Toggle Sprint", - "description": "A toggle sprint mod using the vanilla toggle controls", - "authors": ["celeste"], - "contact": { - "sources": "https://github.com/celestialfault/toggle-toggle-sprint", - "issues": "https://github.com/celestialfault/toggle-toggle-sprint/issues" - }, - "license": "CC0-1.0", - "environment": "client", - "entrypoints": { - "client": ["me.celestialfault.toggletogglesprint.ToggleToggleSprint"], - "modmenu": ["me.celestialfault.toggletogglesprint.ModMenuCompat"] - }, - "accessWidener": "toggle-toggle-sprint.accesswidener", - "mixins": ["toggle-toggle-sprint.mixins.json"], - "depends": { - "fabricloader": ">=0.15", + "schemaVersion": 1, + "id": "toggle-toggle-sprint", + "version": "${version}", + "name": "Toggle Toggle Sprint", + "description": "A toggle sprint mod using the vanilla toggle controls", + "authors": ["celeste"], + "contact": { + "sources": "https://github.com/celestialfault/toggle-toggle-sprint", + "issues": "https://github.com/celestialfault/toggle-toggle-sprint/issues" + }, + "license": "CC0-1.0", + "environment": "client", + "entrypoints": { + "client": ["me.celestialfault.toggletogglesprint.ToggleToggleSprint"], + "modmenu": ["me.celestialfault.toggletogglesprint.ModMenuCompat"] + }, + "accessWidener": "toggle-toggle-sprint.accesswidener", + "mixins": ["toggle-toggle-sprint.mixins.json"], + "depends": { + "fabricloader": ">=0.15", "fabric-api": "*", - "minecraft": ">=1.20.1", - "java": ">=17" - }, - "recommends": { - "yet_another_config_lib_v3": "*", - "modmenu": "*" - } + "minecraft": ">=1.20.1", + "java": ">=17" + }, + "recommends": { + "yet_another_config_lib_v3": "*", + "modmenu": "*" + } } \ No newline at end of file diff --git a/src/main/resources/toggle-toggle-sprint.mixins.json b/src/main/resources/toggle-toggle-sprint.mixins.json index dd412b7..63b8e95 100644 --- a/src/main/resources/toggle-toggle-sprint.mixins.json +++ b/src/main/resources/toggle-toggle-sprint.mixins.json @@ -1,5 +1,6 @@ { "required": true, + "minVersion": "0.8", "package": "me.celestialfault.toggletogglesprint.mixins", "compatibilityLevel": "JAVA_17", "injectors": {