Project-Sloth / ps-realtor

ps-realtor for ps-housing
https://discord.com/projectsloth
Other
46 stars 36 forks source link

BUGFIX - Realtor-restricted tabs require a resource restart #28

Closed Martinator9001 closed 1 year ago

Martinator9001 commented 1 year ago

(that was a lot of R's)

Overview

This PR fixes the problem with ps-realtor's realtor tabs only working after a resource restart after the given user has loaded in.

Details

Essentially copied what ps-realtor does when the resource starts, and pasted it to also do it when a player loads in.

UI Changes / Functionality

Tabs now work without restarting the resource image

Testing Steps

Before: Start server, Load in, open /housing - no tabs. Restart ps-realtor - tabs appear. After: Start server, load in, open /housing - tabs appear.

Martinator9001 commented 1 year ago

I think that the problem happened due to the commit merge from bl-realtor, since that's when the problem appeared IIRC

Martinator9001 commented 1 year ago

Tried it out with the realtor in my server and there weren't any bugs with the tabs