Fluid containers

This commit is contained in:
2026-10-25 15:02:31 -03:00
parent fc27771a92
commit 26b59a1899
24 changed files with 486 additions and 82 deletions
+1 -2
View File
@@ -161,8 +161,7 @@ export class ModGraphics implements Graphics {
if (!EverythingRegistry.get<ItemRegistry>("items", id)) throw new Error(`unknown item ${id}`);
const stack = new ItemStack(id, count);
// the count only shows when it's more than one
if (count === 1) stack.max_amount = 1;
draw_item(stack, this.#x(x), this.#y(y));
draw_item(stack, this.#x(x), this.#y(y), count !== 1 && stack.max_amount !== 1);
}
clip(x: number, y: number, w: number, h: number, draw: () => void) {