fix getboneindex

This commit is contained in:
hydrant
2020-08-02 17:19:22 +02:00
parent aa86076fb5
commit d24df38226

View File

@@ -16,6 +16,11 @@ export default function attachmentManager(game: IGame) {
attachments: {}, attachments: {},
addFor: function (entityRage, id) { addFor: function (entityRage, id) {
if (!entityRage) {
return;
}
let entity; let entity;
if (entityRage.type === "player") { if (entityRage.type === "player") {
entity = game.players.at(entityRage.remoteId); entity = game.players.at(entityRage.remoteId);