Stargate Rewritten

Stargate Rewritten

241 Downloads

verifyPortals is broken.

Pheotis opened this issue ยท 1 comments

commented

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

image

[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

  1. Start a server with a fresh install of stargate.
  2. Set verifyPortals to true in config.yml
  3. Make a fixed gate.
  4. Make its destination gate.

The entrance gate now incorrectly shows as being disconnected.

  1. Restart the sever.

Both of your gates have been wrongly unregistered and are now deleted.

commented

After minor testing, this seems to only occur for portals using tags in their design.