Fix Stairs+ node rotation on placement

This closes #123.
This commit is contained in:
Hugo Locurcio 2019-02-25 10:47:51 +01:00
parent b6f6bc8c71
commit b0cb1d325a
No known key found for this signature in database
GPG Key ID: 39E8F8BE30B0A49C
2 changed files with 8 additions and 0 deletions

View File

@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
## [Unreleased]
### Fixed
- Node rotation now works correctly when placing Stairs+ nodes.
## [1.2.0] - 2018-11-24
### Added

View File

@ -30,6 +30,10 @@ stairsplus.register_single = function(category, alternate, info, modname, subnam
end
def.paramtype = "light"
def.paramtype2 = def.paramtype2 or "facedir"
-- This makes node rotation work on placement
def.place_param2 = nil
def.on_place = minetest.rotate_node
if category ~= "slab" then
def.description = S("%s " .. descriptions[category]):format(fields.description)