AlmuraDev / SGCraft

Stargates mod for Minecraft
https://www.almuramc.com/sgcraft/SGCraft.html
MIT License
31 stars 29 forks source link

Gate Address Access List not working #81

Closed Sarous closed 5 years ago

Sarous commented 5 years ago

SGCraft 2.0.0 beta4 Malisiscore 6.5.1 Forge 1.12.2-14.23.5.2814

Gate Address Access List (GAAL) cannot change Default Outgoing permissions at all. Changing the checkbox does not save state after hitting save; reverts to "allow" when next accessed via configurator.

GAAL saves changes to Default Incoming permission, but has no effect. Gates set to default deny incoming can still be dialed. Likewise, a gate set to default deny can dial a receiving gate set to default deny.

edit: typo

Edit: More testing results: Setting default to allow incoming/outgoing; setting specific gate to deny incomning Gate correctly prevents reception (only case of success)

Any setting which involves Default-Deny fails.

Hypothesis: When the Default is set to allow, the specific gate checks for denials run, and are set corrently. When the Default is set to Deny, it does not perform specific gate checks for denials, as they would be the same setting as the current default. Therefore, suspecting the bug lie in the default denial line itself, and could probably just be re-copied from the specific gate checks (as they are currently working).

Dockter commented 5 years ago

OK after some basic debugging I've found that this is a multiple bug issue.

1st bug is the GUI isn't updating correctly due to a typo when reading from NBT on the client, easy fix. 2nd bug is how I handle default assumptions about allowing outgoing, allowing incoming. This is taking slightly more time....

Dockter commented 5 years ago

I'm fairly certain I fixed this in 2.0.0, the full release. Can you try that and let me know?

Sarous commented 5 years ago

Seems to be fully working

Dockter commented 5 years ago

Excellent. Thanks for re-testing.