Dynmap-Forge/Fabric

Dynmap-Forge/Fabric

888k Downloads

It is not possible to update the set of areas, lines, or circles

kdkasad opened this issue ยท 3 comments

commented

Issue Description: Changing the set of a marker is possible, but it is not possible to change the set that a line/area/circle belongs to.

Steps to Replicate:

  1. Create a line in the default set (/dmarker addline "Test Line")
  2. Create a new set (/dmarker addset test)
  3. Try to update the set of the line (/dmarker updateline "Test Line" newset:test)
  4. No errors messages are given, but the line stays in the default set and is not updated.

[x] I have looked at all other issues and this is not a duplicate
[x] I have been able to replicate this

Solutions

The ability to change the set of a marker exists (see issue #1228), but this feature was not implemented for lines/areas/circles. The actual code to perform this update is exactly the same for all 4 marker types.

I have a fix that consists of just copying some code from the processUpdateMarker() method in DynmapCore/src/main/java/org/dynmap/markers/impl/MarkerAPIImpl.java to the processUpdate{Line,Area,Circle}() methods. However, I haven't opened a PR for it because according to the wiki, any changes to DynmapCore must be tested on all platforms, which I currently can't do.

Let me know if I should open the PR anyways. In the meantime, here's the patch: https://gist.github.com/kdkasad/bf5df36348cbb07d439482181cbfa4b0

commented

Sounds good - I'll try to find some time tonight to integrate the fix.

commented

OK - fix looks good, and I've integrated it in to the latest SNAPSHOT - thanks!

commented

Released in 3.2-beta-2