verifyPortals is broken.
Pheotis opened this issue ยท 1 comments
Background
When the verifyPortals
config option is set to true
, StarGate experiences weird behaviours while operating and while loading.
Description
When a user connects an existing gate (by creating its destination portal), the gate functions, although does not update the sign.
When a user restarts the server, all existing stargates are unverified.
Demonstration
[09:13:34] [Server thread/INFO]: [Stargate] Stargate v.0.10.7.0 is enabled.
[09:13:34] [Server thread/INFO]: [Stargate] [Stargate] Loaded 76 gate layouts
[09:13:35] [Server thread/INFO]: [Stargate] [loadAllGates] Control Block Type == SMOOTH_STONE_SLAB
[09:13:35] [Server thread/INFO]: [Stargate] [loadAllGates] Control Block Type == SMOOTH_STONE_SLAB
[09:13:35] [Server thread/INFO]: [Stargate] [Unregister] Unregistering gate test10
[09:13:35] [Server thread/INFO]: [Stargate] [Stargate] Destroying stargate at Portal [id=-235,6,-163, network=bugreport name=test10, type=Lapis1.gate]
[09:13:35] [Server thread/INFO]: [Stargate] [loadAllGates] Control Block Type == SMOOTH_STONE_SLAB
[09:13:35] [Server thread/INFO]: [Stargate] [loadAllGates] Control Block Type == SMOOTH_STONE_SLAB
[09:13:35] [Server thread/INFO]: [Stargate] [Unregister] Unregistering gate test11
[09:13:35] [Server thread/INFO]: [Stargate] [Stargate] Destroying stargate at Portal [id=-239,6,-163, network=bugreport name=test11, type=Lapis1.gate]
[09:13:35] [Server thread/INFO]: [Stargate] [Stargate] {test} Loaded 0 stargates with 0 set as always-on
[09:13:35] [Server thread/INFO]: [Stargate] [Stargate] {test_nether} No stargates for world
Repro Steps
- Start a server with a fresh install of stargate.
- Set
verifyPortals
totrue
in config.yml - Make a fixed gate.
- Make its destination gate.
The entrance gate now incorrectly shows as being disconnected.
- Restart the sever.
Both of your gates have been wrongly unregistered and are now deleted.