sending command trees are deferred to the end of the tick.
This commit is contained in:
1 parent
256d54fab7
commit
7e2a001be5
2 files changed
+8
-4
No files matched your search
@@ -11,6 +11,7 @@ import com.mojang.brigadier.exceptions.CommandSyntaxException;
|
||||
import com.mojang.brigadier.exceptions.SimpleCommandExceptionType;
|
||||
import net.minecraft.entity.player.PlayerEntity;
|
||||
import net.minecraft.server.MinecraftServer;
|
||||
import net.minecraft.server.ServerTask;
|
||||
import net.minecraft.server.command.ServerCommandSource;
|
||||
import net.minecraft.server.network.ServerPlayerEntity;
|
||||
import net.minecraft.text.BaseText;
|
||||
@@ -168,10 +169,13 @@ public class SettingsManager
|
||||
{
|
||||
return;
|
||||
}
|
||||
for (ServerPlayerEntity entityplayermp : server.getPlayerManager().getPlayerList())
|
||||
server.method_18858(new ServerTask(this.server.getTicks(), () ->
|
||||
{
|
||||
server.getCommandManager().sendCommandTree(entityplayermp);
|
||||
}
|
||||
for (ServerPlayerEntity entityplayermp : server.getPlayerManager().getPlayerList())
|
||||
{
|
||||
server.getCommandManager().sendCommandTree(entityplayermp);
|
||||
}
|
||||
}));
|
||||
}
|
||||
|
||||
private void loadConfigurationFromConf()
|
||||
|
||||
Reference in new issue
Block a user