Commit Graph

19 Commits

Author SHA1 Message Date
OgelGames
837b886c7b code improvements
* create all hotbar images on load
* round hotbar size before clamping
* move migration function to bottom of file
* check if player is online in chat command
* return message from chat command instead of sending chat message
2023-07-26 15:32:04 +10:00
OgelGames
ed6db2e32d don't pass player to minetest.after function
fixes #7
2023-07-26 14:56:50 +10:00
Niklp09
1b84133caa Remove not working check 2023-07-23 20:38:18 +02:00
Niklp
3ef7cf9a93
New storage backend (#6)
Co-authored-by: OgelGames <olliverdc28@gmail.com>
2023-07-20 15:35:03 +10:00
BuckarooBanzay
62d268afa4 add .luacheckrc, workflow and fix some issues
fixes #1
2021-11-29 19:18:58 +01:00
Vanessa Dannenberg
d521b6f1dc round the given size to the nearest integer 2021-03-25 01:07:11 -04:00
Vanessa Dannenberg
a7af7259af describe range of hotbar lengths 2021-03-24 23:10:13 -04:00
Vanessa Dannenberg
b8f429c57f refactor, less code duplication 2021-03-24 22:59:36 -04:00
Vanessa Dannenberg
b1cbaa24fc Allow any arbitrary hotbar size 1 to 32
* If user tries to set it to some length < 1 or > 32,
  it is capped at 1 or 32, respectively.

* If user set it to something that doesn't evaluate to a number,
  it resets to 16.
2021-03-24 22:02:26 -04:00
Vanessa Dannenberg
80e2d796c4 fix typo 2021-03-14 10:25:55 -04:00
Vanessa Dannenberg
26d270bb83 it might help if I allow it to run outside of DB :P 2021-03-10 20:12:57 -05:00
Vanessa Dannenberg
9a50475ed5 adjust for change of name of Dreambuilder's theme code 2021-03-10 14:35:41 -05:00
VanessaE
9eda7c4459 add a 10-slot mode. 2020-04-17 13:42:21 -04:00
Vanessa Dannenberg
13bef47c8a fix deprecated settings fetch 2020-04-15 16:42:18 -04:00
Vanessa Dannenberg
5a7267afa7 make sure validate always returns a useful number
e.g. /hotbar 999 --> return 16
2019-04-20 10:14:45 -04:00
Vanessa Dannenberg
0e37dc7009 fix global warning 2019-04-20 10:12:40 -04:00
Vanessa Dannenberg
6c93b3800e allow 24 and 32-slot sizes if using 5.0.0-dev
(requires 5.0.0-dev commit 1b0fd195 or newer)
2018-12-02 18:30:12 -05:00
cheapie
49437a9196 remember players' hotbar sizes between logins 2018-11-10 23:26:59 -05:00
Vanessa Dannenberg
2d313236fe Initial commit 2018-11-10 23:23:16 -05:00