Skip to content
This repository has been archived by the owner on Apr 3, 2024. It is now read-only.

Vector Objects don't persist when modifying through Properties. #251

Open
coaster3000 opened this issue Apr 22, 2014 · 0 comments
Open

Vector Objects don't persist when modifying through Properties. #251

coaster3000 opened this issue Apr 22, 2014 · 0 comments

Comments

@coaster3000
Copy link
Contributor

Bug was introduced during the initial addition of vector manipulation to events and entities.

Vectors don't persist through properties due to bukkit api nature on vectors.
It creates a new vector on every method you use against it.

There are two approaches to this kind of issue. Create a custom handle to it. Or a transformer to a Mutable version of vector provided similarlly to how item stacks work.

Will see what method seems best for future.

Current workarounds are to set the vectors with a new vector object with the previous vector values read through properties.

@coaster3000 coaster3000 added this to the 1.0 milestone Apr 22, 2014
coaster3000 added a commit that referenced this issue Apr 23, 2014
	BlockDispense
	LightningBolt
	ThunderChange
	WeatherChange
	SignChange

Plus basic support for vector parameters and properties.

Closes #249
Introduces bug #251
@coaster3000 coaster3000 self-assigned this Apr 23, 2014
@coaster3000 coaster3000 modified the milestone: 1.0 Apr 23, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
Development

No branches or pull requests

1 participant