forked from minetest-mods/moreblocks
Compare commits
3 Commits
07b6dd8bfe
...
46d347c00a
Author | SHA1 | Date | |
---|---|---|---|
46d347c00a | |||
2f211a6545 | |||
1f1959ba54 |
@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
|
|||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
|
||||||
|
## [2.2.0] - 2021-06-28
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
|
|
||||||
- Refactored recipe override mechanism to avoid re-coding recipes
|
- Refactored recipe override mechanism to avoid re-coding recipes
|
||||||
@ -131,7 +133,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
|
|||||||
|
|
||||||
- Initial versioned release.
|
- Initial versioned release.
|
||||||
|
|
||||||
[Unreleased]: https://github.com/minetest-mods/moreblocks/compare/v2.1.0...HEAD
|
[Unreleased]: https://github.com/minetest-mods/moreblocks/compare/v2.2.0...HEAD
|
||||||
|
[2.2.0]: https://github.com/minetest-mods/moreblocks/compare/v2.1.0...v2.2.0
|
||||||
[2.1.0]: https://github.com/minetest-mods/moreblocks/compare/v2.0.0...v2.1.0
|
[2.1.0]: https://github.com/minetest-mods/moreblocks/compare/v2.0.0...v2.1.0
|
||||||
[2.0.0]: https://github.com/minetest-mods/moreblocks/compare/v1.3.0...v2.0.0
|
[2.0.0]: https://github.com/minetest-mods/moreblocks/compare/v1.3.0...v2.0.0
|
||||||
[1.3.0]: https://github.com/minetest-mods/moreblocks/compare/v1.2.0...v1.3.0
|
[1.3.0]: https://github.com/minetest-mods/moreblocks/compare/v1.2.0...v1.3.0
|
||||||
|
@ -49,6 +49,8 @@ stairsplus.rotate_node_aux = function(itemstack, placer, pointed_thing)
|
|||||||
local under = pointed_thing.under
|
local under = pointed_thing.under
|
||||||
local under_node = minetest.get_node(under)
|
local under_node = minetest.get_node(under)
|
||||||
local under_prefix = under_node and name_to_category(under_node.name)
|
local under_prefix = under_node and name_to_category(under_node.name)
|
||||||
|
-- NALC Addition to avoid coloredwood/unifiedbricks crash by Sys4
|
||||||
|
local under_pmod = string.sub(under_node.name, 1, string.find(under_node.name, ":")-1)
|
||||||
|
|
||||||
local same_cat = item_prefix == under_prefix
|
local same_cat = item_prefix == under_prefix
|
||||||
|
|
||||||
@ -65,7 +67,8 @@ stairsplus.rotate_node_aux = function(itemstack, placer, pointed_thing)
|
|||||||
-- under node has a non-standard shape, so use the distance between under and above
|
-- under node has a non-standard shape, so use the distance between under and above
|
||||||
local wallmounted = minetest.dir_to_wallmounted(vector.subtract(pointed_thing.above, under))
|
local wallmounted = minetest.dir_to_wallmounted(vector.subtract(pointed_thing.above, under))
|
||||||
|
|
||||||
if same_cat and not aux then
|
if same_cat and (under_pmod ~= "coloredwood" and under_pmod ~= "unifiedbricks")
|
||||||
|
and not aux then
|
||||||
p2 = under_node.param2
|
p2 = under_node.param2
|
||||||
-- flip if placing above or below an upright or upside-down node
|
-- flip if placing above or below an upright or upside-down node
|
||||||
-- TODO should we also flip when placing next to a side-mounted node?
|
-- TODO should we also flip when placing next to a side-mounted node?
|
||||||
|
Reference in New Issue
Block a user