MCPcopy Create free account
hub / github.com/MaxBittker/rs-sdk / lineNumber

Method lineNumber

server/engine/src/engine/script/ScriptFile.ts:141–149  ·  view source on GitHub ↗
(pc: number)

Source from the content-addressed store, hash-verified

139 }
140
141 lineNumber(pc: number) {
142 for (let i = 0; i < this.info.pcs.length; i++) {
143 if (this.info.pcs[i] > pc) {
144 return this.info.lines[i - 1];
145 }
146 }
147
148 return this.info.lines[this.info.lines.length - 1];
149 }
150}

Callers 1

executeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected