diff --git a/portal_api.lua b/portal_api.lua index 0dbfd65..2f5be3c 100644 --- a/portal_api.lua +++ b/portal_api.lua @@ -127,7 +127,7 @@ nether.PortalShape_Traditional = { is_horizontal = false, -- whether the wormhole is a vertical or horizontal surface diagram_image = { image = "nether_book_diagram_traditional.png", -- The diagram to be shown in the Book of Portals - width = 144, + width = 142, height = 305 }, @@ -280,7 +280,7 @@ nether.PortalShape_Circular = { is_horizontal = false, -- whether the wormhole is a vertical or horizontal surface diagram_image = { image = "nether_book_diagram_circular.png", -- The diagram to be shown in the Book of Portals - width = 150, + width = 149, height = 243 }, @@ -1724,6 +1724,9 @@ function test_shapedef_is_valid(shape_defintion) local p1, p2 = shape_defintion:get_p1_and_p2_from_anchorPos(origin, 0) assert(vector.equals(shape_defintion.size, vector.add(vector.subtract(p2, p1), 1)), "p1 and p2 of shape definition '" .. shape_defintion.name .. "' don't match shapeDef.size") + assert(shape_defintion.diagram_image ~= nil and shape_defintion.diagram_image.image ~= nil, "Shape definition '" .. shape_defintion.name .. "' does not provide an image for Help/Book of Portals") + assert(shape_defintion.diagram_image.width > 0 and shape_defintion.diagram_image.height > 0, "Shape definition '" .. shape_defintion.name .. "' does not provide the size of the image for Help/Book of Portals") + -- todo return result diff --git a/textures/nether_book_diagram_circular.png b/textures/nether_book_diagram_circular.png index 5eac525..c6a4df1 100644 Binary files a/textures/nether_book_diagram_circular.png and b/textures/nether_book_diagram_circular.png differ diff --git a/textures/nether_book_diagram_platform.png b/textures/nether_book_diagram_platform.png index 810695e..4f81312 100644 Binary files a/textures/nether_book_diagram_platform.png and b/textures/nether_book_diagram_platform.png differ diff --git a/textures/nether_book_diagram_traditional.png b/textures/nether_book_diagram_traditional.png index 6762d45..f159024 100644 Binary files a/textures/nether_book_diagram_traditional.png and b/textures/nether_book_diagram_traditional.png differ