LostJustice wrote:lacucaracha wrote:LostJustice wrote:Also I noticed another bug with the client that has to do with Game.getMapObjects.
If you do var list = Game.getMapObjects();
Then chop down a tree.
Do var list2 = Game.getMapObjects();
Then list == list2 is true. This should be false because you chopped down a tree which is an object hence the lists should be different but they are the same meaning the getMapObjects(); is not updating the chopped down tree.
What slipper said. Its not a bug in the client, the object id just doesnt change. But thats weird because even tho the elements may be equal, the array itself isnt equal. Maybe its some JS 'feature'
If array is equal to each other, by definition, then every element of one array is equal to every element of another array and the arrays are the same size. So it still should not be returning true.
What you said is true. if the array is equal, then every element is equal. But it doesnt mean that if every element is equal the array is equal.
The array points to a position in the memory that has its elements. There are 2 different pos with the same elements, thats why it should be false (because you're comparing the positions, not the elements).
Still, what u said about the stumps is true.