@@ 223,9 223,9 @@ auto_gen_blocks!(
( CastleWindow, "base/Tiles/castle_window", [Building] ),
( Cliff, "exp/Tiles/cliff", [Block] ),
- ( CliffCorner, "exp/Tiles/cliff", [Block] ),
- ( CliffCornerInner, "exp/Tiles/cliff", [Block] ),
- ( CliffEntrance, "exp/Tiles/cliff", [Block] ),
+ ( CliffCorner, "exp/Tiles/cliff_corner", [Block] ),
+ ( CliffCornerInner, "exp/Tiles/cliff_cornerInner", [Block] ),
+ ( CliffEntrance, "exp/Tiles/cliff_entrance", [Block] ),
( CliffTop, "exp/Tiles/cliff_top", [Block] ),
( CliffTopEntrance, "exp/Tiles/cliff_topEntrance", [Block] ),
( CliffTopCorner, "exp/Tiles/cliff_topCorner", [Block] ),
@@ 142,10 142,10 @@ impl InventoryWidgets {
fn page_down(&mut self, inv: &mut Inventory) {
let list = inv.category.get_blocks();
let mut page = self.page;
- if page <= 0 {
- page = list.len().div_ceil(9)-1;
- } else {
+ if page > 0 {
page -= 1;
+ } else {
+ page = list.len().div_ceil(9)-1;
}
self.load_page(page, inv);
}
@@ 366,6 366,7 @@ impl GameComponent for BuildScreen {
_ => ()
}
+ // update the top-right item indicator
{
let amount = if let Some(block) = &world.inventory.selected {
if let Some(a) = world.inventory.contents.get(block) {