The-Fireplace-Minecraft-Mods / Clans

A Minecraft land protection and PVP mod
https://www.curseforge.com/minecraft/mc-mods/clans
GNU General Public License v3.0
5 stars 10 forks source link

Execute more operations under the command method using the new thread. #237

Open mcqwy opened 4 years ago

mcqwy commented 4 years ago

I am currently working on mod, a subsidiary client of clanmod. Its role is to allow players to use the graphical operation of clan. With more graphics, let the player save more command input trouble. It's like the command /clan form [name]. When I tried, I copied the execution method in your mod in my mod. However, it is found that there is no delay in the execution of the original command, while using the same method in my mod will cause server delay. So I try to create a new thread in the following code, and let the command requirements execute in the thread. Now it's working very well, and there are no bugs or negative effects. 1234

The-Fireplace commented 3 years ago

I am working on a big performance update, and plan to get things running as efficiently as possible. I'll keep this in mind.