mirror of
https://github.com/OpenFusionProject/OpenFusion.git
synced 2025-10-04 05:30:06 +00:00
Make /refresh work again
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
#include "NPCManager.hpp"
|
||||
#include "MobManager.hpp"
|
||||
#include "MissionManager.hpp"
|
||||
#include "ChunkManager.hpp"
|
||||
|
||||
#include <sstream>
|
||||
#include <iterator>
|
||||
@@ -351,7 +352,10 @@ void npcRotateCommand(std::string full, std::vector<std::string>& args, CNSocket
|
||||
|
||||
void refreshCommand(std::string full, std::vector<std::string>& args, CNSocket* sock) {
|
||||
Player* plr = PlayerManager::getPlayer(sock);
|
||||
PlayerManager::sendPlayerTo(sock, plr->x, plr->y, plr->z);
|
||||
ChunkPos currentChunk = plr->chunkPos;
|
||||
ChunkPos nullChunk = std::make_tuple(0, 0, 0);
|
||||
ChunkManager::updatePlayerChunk(sock, currentChunk, nullChunk);
|
||||
ChunkManager::updatePlayerChunk(sock, nullChunk, currentChunk);
|
||||
}
|
||||
|
||||
void instanceCommand(std::string full, std::vector<std::string>& args, CNSocket* sock) {
|
||||
|
Reference in New Issue
Block a user