Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(LocationComponent): provide convenience constructor for Vector3i #4901

Merged
merged 2 commits into from
Sep 13, 2021

Conversation

keturn
Copy link
Member

@keturn keturn commented Sep 11, 2021

chore: prefer set() over new instances in copyFrom()

chore: prefer set() over new instances in copyFrom()
chore: prefer set over new instance in copyFrom
@keturn keturn added the Size: S Small effort likely only affecting a single area and requiring little to no research label Sep 11, 2021
@github-actions github-actions bot added the Type: Chore Request for or implementation of maintenance changes label Sep 11, 2021
@@ -35,7 +36,7 @@
// Standard position/rotation
@Replicate
@TextField
Vector3f position = new Vector3f();
final Vector3f position = new Vector3f();
Copy link
Member

@pollend pollend Sep 11, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think you can have this as final. how does the serialization work in gestalt, I thought it instantiated a new object and assigned it but you can't do that if the field is final.

@pollend
Copy link
Member

pollend commented Sep 11, 2021

umm looks like it seem to work fine in multiplayer?

@jdrueckert jdrueckert merged commit 01d6c88 into develop Sep 13, 2021
@keturn keturn deleted the chore/locComC branch September 13, 2021 16:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Size: S Small effort likely only affecting a single area and requiring little to no research Type: Chore Request for or implementation of maintenance changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants