error logging work
All checks were successful
studiorailgun/Renderer/pipeline/head This commit looks good
All checks were successful
studiorailgun/Renderer/pipeline/head This commit looks good
This commit is contained in:
parent
2b7651b49e
commit
2cfd1536ee
@ -2090,6 +2090,9 @@ Actual macro pathfinding implementation
|
||||
Enable AI for low-lod entities
|
||||
Fix draw cell manager test
|
||||
|
||||
(05/31/2025)
|
||||
Error logging in entity-character assignment
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@ -36,6 +36,9 @@ public class ServerCharacterData {
|
||||
* @param charaData The character data
|
||||
*/
|
||||
public static void attachServerCharacterData(Entity entity, Character charaData){
|
||||
if(entity.containsKey(EntityDataStrings.TREE_SERVERCHARACTERDATA)){
|
||||
throw new Error("Server character data already attached!");
|
||||
}
|
||||
ServerCharacterData tree = new ServerCharacterData(entity, charaData);
|
||||
entity.putData(EntityDataStrings.TREE_SERVERCHARACTERDATA, tree);
|
||||
Globals.serverState.characterService.setEntity(charaData, entity);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user