I'm trying to create a new FallingBlock version for Bounce Helper, and so far I've just copied the Loenn version of the entity plugin from here (https://github.com/CelestialCartographers/Loenn/blob/master/src/entities/falling_block.lua) and changed the names appropriately:
local fakeTilesHelper = require("helpers.fake_tiles")
local BounceHelperBounceFallingBlock = {}
BounceHelperBounceFallingBlock.name = "BounceHelper/BounceFallingBlock"
function BounceHelperBounceFallingBlock.placements()
return {
name = "normal",
data = {
tiletype = fakeTilesHelper.getPlacementMaterial(),
climbFall = true,
behind = false,
width = 8,
height = 8
}
}
end
BounceHelperBounceFallingBlock.sprite = fakeTilesHelper.getEntitySpriteFunction("tiletype", false)
BounceHelperBounceFallingBlock.fieldInformation = fakeTilesHelper.getFieldInformation("tiletype")
function BounceHelperBounceFallingBlock.depth(room, entity)
return entity.behind and 5000 or 0
end
return BounceHelperBounceFallingBlock
but when trying to open Loenn it crashes with the attached message. Any ideas why this is happening/how to fix it?
