Save Tree State (#1052)

This commit is contained in:
slprime authored and GitHub committed 2026-09-27 11:00:27 +03:00
1 parent f84c4ef2bd
commit 5868187410
6 files changed
+48 -8

No files matched your search

@@ -142,7 +142,11 @@ class CraftingTreeCanvas {
public int treeWidth = 0;
public int treeHeight = 0;
private final Camera camera = new Camera();
private final Camera camera;
public CraftingTreeCanvas(Camera camera) {
this.camera = camera;
}
public void setViewport(int x, int y, int w, int h) {
this.camera.setViewport(x, y, w, h);