diff --git a/sharedPlugins/remoteMap/index.js b/sharedPlugins/remoteMap/index.js index 50b5b03a..f9233659 100644 --- a/sharedPlugins/remoteMap/index.js +++ b/sharedPlugins/remoteMap/index.js @@ -48,11 +48,11 @@ class remoteMap { if(name == "deleted"){ this.chunkMap.setEntity(xPos, yPos, "delete this entity").then(data => { this.messageInterface("Deleted data "+data.position.x+", "+data.position.y); - }).catch((err)=>messageInterface(err)); + }).catch((err)=>this.messageInterface(err)); } else { this.chunkMap.setEntity(xPos, yPos, {name}).then(data => { this.messageInterface("Added "+name+" to data "+data.position.x+", "+data.position.y); - }).catch((err)=>messageInterface(err)); + }).catch((err)=>this.messageInterface(err)); } }