jusdino / BuildPortals

Mincreaft plugin for player-buildable teleportation portals
https://dev.bukkit.org/projects/buildportals
GNU General Public License v3.0
10 stars 5 forks source link

Simplify portal config #34

Open jusdino opened 2 years ago

jusdino commented 2 years ago

Refactor Portal and PortalFrame to only actually record locations for min/max frame coordinates in config rather than each vector of the frame and each vector of the interior. On load, the rest of the data should be extrapolated. Note that we will have to still read configs with more than that, since we want to maintain backward compatibility. We can save over existing portal configs, however, with a smaller set of portal vectors, so long as we allow more than that to be there on load, reduce to what we care about, and don't change the format of the config file.