diff --git a/.check_date.sh b/.check_date.sh new file mode 100755 index 0000000..7310fde --- /dev/null +++ b/.check_date.sh @@ -0,0 +1,3 @@ +#!/usr/bin/env bash +grep $(date -I) mod.conf +exit $? diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 94c1c38..6d4489f 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -17,6 +17,13 @@ repos: pass_filenames: true exclude: .pre-commit-config.yaml fail_fast: true + - id: date_version + name: date version + language: script + entry: .check_date.sh + files: mod.conf + always_run: true + fail_fast: true - id: stylua name: stylua language: system diff --git a/mod.conf b/mod.conf index 2145c57..7f36e8e 100644 --- a/mod.conf +++ b/mod.conf @@ -5,8 +5,8 @@ website = https://content.minetest.net/packages/rheo/smartshop/ author = fluxionary license = LGPL-3.0-or-later media_license = CC-BY-SA-3.0 -version = 2023-05-18 -min_minetest_version = 5.7.0 +version = 2024-01-12 +min_minetest_version = 5.8.0 supported_games = * depends = fmod, futil optional_depends = currency, default, mesecons, mesecons_mvps, petz, node_entity_queue, pipeworks, tubelib diff --git a/util.lua b/util.lua index cf92656..e7cafd5 100644 --- a/util.lua +++ b/util.lua @@ -75,7 +75,7 @@ function util.check_player_add_remainder(player_inv, shop, remainder) local player_name = player_inv.name util.error( - "ERROR: %s lost %q on add using %'s shop @ %s", + "ERROR: %s lost %q on add using %s's shop @ %s", player_name, remainder:to_string(), shop:get_owner(), @@ -93,7 +93,7 @@ function util.check_player_remove_remainder(player_inv, shop, remainder, expecte local player_name = player_inv.name util.error( - "ERROR: %s lost %q of %q on remove from %'s shop @ %s", + "ERROR: %s lost %q of %q on remove from %s's shop @ %s", player_name, remainder:to_string(), expected:to_string(),