From 5e85e1e3b8adb2414539cfb03d8b7a8d7d03f43b Mon Sep 17 00:00:00 2001 From: piexel Date: Thu, 5 Nov 2026 23:00:05 +0100 Subject: [PATCH] Report tree objects as one set of ids TreeObjects no longer has a separate procedural list: a module reports the ids of every object it places as a tree, procedural variants included, and the host only matches those ids. --- .../main/java/com/volmit/service/SaplingGrowth.java | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/api/src/main/java/com/volmit/service/SaplingGrowth.java b/api/src/main/java/com/volmit/service/SaplingGrowth.java index 2fe0fa00d..234d0a0bf 100644 --- a/api/src/main/java/com/volmit/service/SaplingGrowth.java +++ b/api/src/main/java/com/volmit/service/SaplingGrowth.java @@ -67,17 +67,16 @@ public interface SaplingGrowth { } /** - * Objects a module places as trees, by the ids {@link com.volmit.resource.PackResources#idOf} gives their keys. + * Objects a module places as trees, by the ids {@link com.volmit.resource.PackResources#idOf} gives the names they + * are placed under. * - * @param objects pack objects its placements mark as trees - * @param procedural the objects its procedural trees generate, one per variant + * @param objects objects its placements mark as trees, one per variant of an object that bakes several */ - record TreeObjects(Set objects, Set procedural) { - public static final TreeObjects NONE = new TreeObjects(Set.of(), Set.of()); + record TreeObjects(Set objects) { + public static final TreeObjects NONE = new TreeObjects(Set.of()); public TreeObjects { objects = Set.copyOf(objects); - procedural = Set.copyOf(procedural); } } }