Commit Graph

21 Commits

Author SHA1 Message Date
Auke Kok
9d4ac9bd9a Fix books: enforce book ownership, strict access checking.
Fixes #399
2017-12-06 21:15:58 -08:00
Vanessa Ezekowitz
f03e71397a get rid of last vestages of "infinite stacks" special handling
just checks for creative mode/priv directly instead, as needed.
2017-08-12 17:52:29 -04:00
Vanessa Ezekowitz
c9c4214bff use static hardware coloring for books,
use soft overlays for cover trim,
2017-06-25 03:12:03 -04:00
Vanessa Ezekowitz
970636571e missed an alias for open books 2017-06-25 03:11:37 -04:00
Vanessa Ezekowitz
4ee5b6b87f revert a599b041d4 (param2 colorization of books)
The intention of this is to fix books in peoples' inventories that are
now inaccessible.  They can be placed, viewed, edited like normal now.

Side effect: all books that were already in-world and that have already
been converted to the param2 colorization before will be grey now, and
most will end up turned some wierd direction, but that can be fixed with
the screwdriver.

If you need to re-color one of the now-grey books, you'll need to craft
one of the desired color, place it, and copy and paste your text from
the grey book.

Newly-placed colored books will behave normally.
2017-06-25 03:11:31 -04:00
Vanessa Ezekowitz
18d2e492af use unified dyes' on_rotate handler for some nodes 2017-02-18 13:01:49 -05:00
Vanessa Ezekowitz
6c0dd2d31a use unified dyes' rotation correction functions 2017-02-17 23:07:25 -05:00
Vanessa Ezekowitz
e9477dd45d don't run LBM at every load 2017-02-16 16:59:19 -05:00
Diego Martínez
2df6dbcad9 Fix warnings issued by luacheck. 2017-02-15 23:53:52 -03:00
Vanessa Ezekowitz
7d3b2f921e perform the after-place-fix-rotation at the end of on_place 2017-02-07 00:17:06 -05:00
Vanessa Ezekowitz
f29e2fc698 remove debug prints 2017-02-06 09:34:21 -05:00
Vanessa Ezekowitz
a599b041d4 convert books to param2 colorization
requires unified dyes commit b0ccff16 or later
2017-02-06 09:31:31 -05:00
Diego Martínez
dc7b60c11f Split I18N stuff into its own submod. 2017-01-29 21:51:07 -03:00
Diego Martínez
0d3da0c328 Use new intllib API. 2017-01-25 00:09:18 -03:00
Tim
337dc05e70 Always return the ItemStack for on_rightclick to comply with the API. 2016-07-31 13:07:21 +02:00
Tim
ffeac9a1bd fix books and swing's on_place to handle CONTENT_IGNORE and CONTENT_UNKNOWN and to always return their itemstacks 2015-09-10 09:43:04 +02:00
Diego Martinez
4c6a98b593 books: Allow editing while placed and open.
Removes the ability to edit the book by "using" it, but instead
allows to edit the book by right-clicking it while open. Also
changes the interface to open/close the books by punching instead
of right-clicking. In addition, fixes wrong handling of metadata.
2015-05-06 20:36:34 -03:00
Vanessa Ezekowitz
9d76512cd0 phase out baked colored book textures
in favor colorizing a couple of base textures + overlays
reworked the meshes as well.
2015-05-04 04:11:24 -04:00
kilbith
4dee35893a Cleaning and tweaking node params 2015-04-29 16:58:33 +02:00
Vanessa Ezekowitz
677106529b Change books' description to indicate that they're writable 2015-03-31 11:43:15 -04:00
jp
d3199606ec Reorganize files 2015-02-25 10:35:29 +01:00