Skip to content

Commit 5ef928f

Browse files
authored
Merge pull request CommunalHelper#256 from aonkeeper4/chained-falling-blocks-custom-tileset-support
Add support for custom tilesets to the chained falling block Loenn plugin
2 parents 20d96da + ef6012c commit 5ef928f

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

Loenn/entities/chains/chained_falling_block.lua

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,18 @@ local fakeTilesHelper = require("helpers.fake_tiles")
44
local chainedFallingBlock = {}
55

66
chainedFallingBlock.name = "CommunalHelper/ChainedFallingBlock"
7-
chainedFallingBlock.fieldInformation = {
8-
tiletype = {
9-
options = fakeTilesHelper.getTilesOptions(),
10-
editable = false
11-
},
12-
fallDistance = {
13-
minimumValue = 0,
14-
fieldType = "integer"
7+
function chainedFallingBlock.fieldInformation()
8+
return {
9+
tiletype = {
10+
options = fakeTilesHelper.getTilesOptions(),
11+
editable = false
12+
},
13+
fallDistance = {
14+
minimumValue = 0,
15+
fieldType = "integer"
16+
}
1517
}
16-
}
18+
end
1719

1820
function chainedFallingBlock.depth(room, entity)
1921
return entity.behind and 5000 or 0

0 commit comments

Comments
 (0)