Skip to content

Commit

Permalink
Make offset independent of world caching
Browse files Browse the repository at this point in the history
  • Loading branch information
IceTank committed Jan 20, 2023
1 parent 24c7b6c commit c4ebf80
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion example/simpleProxy.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const proxy = new InspectorProxy({
serverAutoStart: true, // start the server when the proxy starts
serverStopOnBotStop: false, // Stop the server when the bot stops
autoStartBotOnServerLogin: true,
positionOffset: new Vec3(5000, 0, 0),
// positionOffset: new Vec3(5000, 0, 0),
worldCaching: false
})

Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ export class InspectorProxy extends EventEmitter {
}
console.info('Starting bot')
let offset: Vec3 | undefined = undefined
if (this.worldManager && this.proxyOptions.positionOffset) {
if (this.proxyOptions.positionOffset) {
offset = this.proxyOptions.positionOffset
}
const conn = new Conn(this.options, {
Expand Down

0 comments on commit c4ebf80

Please sign in to comment.