1
0
mirror of https://github.com/pandorabox-io/banners.git synced 2025-01-08 17:10:32 +01:00
Commit Graph

13 Commits

Author SHA1 Message Date
Luke aka SwissalpS
8cc1c82717
Limit texture size (#6)
* whitespace and minetest. -> core.

- use same whitespace style throughout and fix some indents.
- change from minetest. to core. namespace.

* Update Readme: Minetest -> Luanti

* add luacheck

* update optional depends

* luacheck cleanups

- unused arguments
- shaddowed vars
- var redeclarations
- some whitespace involved in above lines

* clean close of file after reading

* avoid duplicate code

save some lines and some extra method calls.

* avoid error: "unknown global"

* stray whitespace fixups

* whitespace: switch all files to same indent character

tabs -> spaces

* refactor weird declaration

* whitespace: two stray spaces

...that slipped through the cracks on previous whitespace edit

* fix shaddowing global table

* reduce amount of times transformation string is calculated

* use ipairs feature

or use the faster repeat-until-loop

* cap max amount of layers

fixes #5

* fix #5 make transform history non-global

fixes #5
transformation history was shared by all users and kept growing as it
was never truely reset. Every time a user
used a banner a white background was dumped on top of the
stack making it possible to crash the server through an
overflow to core.serialize() function.

* minimize metadata size

also changed banners.max_transformations to
banners.max_undo_levels and lowered the value substantially.

* add versioning

* add recoverable per player history with saved colour

* rename update_all -> update_preview_inv

since it isn't updating everything, only
the preview and the inventory item

* dynamically update masks

to reflect the currently selected colour.
2024-11-29 10:45:55 +01:00
Luke aka SwissalpS
cc36ed67b5
Is ground content (#3)
* banners aren't ground content

* Update factions.lua
2024-02-28 12:06:41 +01:00
shamoanjac
ef8f2437cd Merge branch 'master' of https://github.com/shamoanjac/banners-mod 2017-02-10 07:29:05 +01:00
shamoanjac
9fd7e579db Misc 2017-02-09 18:34:35 +01:00
shamoanjac
ead235fe7a Cannot get death banners back. 2016-08-28 00:06:38 +02:00
shamoanjac
a457da2b98 Fixes + half the war are done 2016-08-15 18:29:47 +02:00
shamoanjac
e4dc4965f5 Fixed power banners on_dig() 2016-08-15 14:54:41 +02:00
shamoanjac
7e74d0a3a0 Banners increase maxpower instead of power 2016-08-15 10:17:09 +02:00
shamoanjac
f17a739709 Final fix on power crafting REEEE 2016-08-15 01:14:22 +02:00
shamoanjac
ae28cedac6 Fixed power banner crafting 2016-08-15 00:11:41 +02:00
shamoanjac
015d1fbed5 Fixed finial typo 2016-08-14 12:28:21 +02:00
shamoanjac
6076d53459 Fixed golden filial and power pole recipes 2016-08-13 09:40:39 +02:00
shamoanjac
a3a02c235f Added factions.lua 2016-08-08 23:15:36 +02:00