Skip to content

Commit 33b9fe0

Browse files
SnaveSutitgitbutler-client
authored andcommitted
✂️ Remove debug logs
1 parent adcc0e2 commit 33b9fe0

1 file changed

Lines changed: 11 additions & 11 deletions

File tree

src/systems/minecraft/fontManager.ts

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ class BitmapFontProvider extends FontProvider {
179179
this.ascent = providerJSON.ascent
180180
for (const row of providerJSON.chars) {
181181
const str = new UnicodeString(row)
182-
console.log({ row, str })
182+
// console.log({ row, str })
183183
this.chars.push(str)
184184
}
185185
}
@@ -196,15 +196,15 @@ class BitmapFontProvider extends FontProvider {
196196
this.charHeight = texture.image.height / this.chars.length
197197
this.charWidth = texture.image.width / this.chars[0].length
198198
if (!Number.isFinite(this.charWidth)) {
199-
console.log({
200-
providerJSON: this.providerJSON,
201-
bitmapPath: this.bitmapPath,
202-
imageWidth: texture.image.width,
203-
charsPerRow: this.chars[0].length,
204-
calculatedCharWidth: this.charWidth,
205-
chars: this.chars,
206-
texture,
207-
})
199+
// console.log({
200+
// providerJSON: this.providerJSON,
201+
// bitmapPath: this.bitmapPath,
202+
// imageWidth: texture.image.width,
203+
// charsPerRow: this.chars[0].length,
204+
// calculatedCharWidth: this.charWidth,
205+
// chars: this.chars,
206+
// texture,
207+
// })
208208
throw new Error(
209209
`Invalid character width calculated from bitmap font atlas: ${this.charWidth}`
210210
)
@@ -325,7 +325,7 @@ export class MinecraftFont {
325325
throw error
326326
}
327327

328-
console.log(this.assetPath, fontJSON)
328+
// console.log(this.assetPath, fontJSON)
329329

330330
for (const providerJSON of fontJSON.providers) {
331331
switch (providerJSON.type) {

0 commit comments

Comments
 (0)