So I set an attribute for an ObjectElement, but then when I call hasAttribute on that ObjectElement, I always get a FALSE result. Am I doing something wrong, or is this method broken/not implemented?
Java
So I set an attribute for an ObjectElement, but then when I call hasAttribute on that ObjectElement, I always get a FALSE result. Am I doing something wrong, or is this method broken/not implemented?
try putting the last 2 lines in a separate method. ive ran into issues setting some attributes then getting them in the same method.
Here try this ^^^
Thanks for posting the code snipped! I can confirm that the hasAttribute() method for objects, constructions and plants does not work correctly... I will fix this with the next update
However, the getAttribute() method should still work properly
Thanks. Good to know I'm not crazy.
Don’t have an account yet? Create a new account now and be part of our community!