[Fix] Made SceneObject/SceneTrigger.groupId non transient, to identify trigger from specific groups, that have the same config

This commit is contained in:
hartie95 2024-04-04 00:16:15 +02:00
parent 4eb2f17797
commit 9d28dcdbd3
2 changed files with 3 additions and 2 deletions

View File

@ -34,7 +34,7 @@ public abstract class SceneObject {
/** /**
* not set by lua * not set by lua
*/ */
protected transient int groupId; protected int groupId;
protected transient int blockId; protected transient int blockId;
protected transient SceneMeta sceneMeta; protected transient SceneMeta sceneMeta;

View File

@ -28,7 +28,8 @@ public class SceneTrigger {
@LuaNames("forbid_guest") @LuaNames("forbid_guest")
private boolean forbid_guest = true; private boolean forbid_guest = true;
private transient int groupId; // not directly part of the lua table
private int groupId;
private transient int blockId; private transient int blockId;
private transient SceneMeta sceneMeta; private transient SceneMeta sceneMeta;
} }