mirror of
https://github.com/JannisX11/blockbench.git
synced 2024-11-27 04:21:46 +08:00
parent
b061fe4a0e
commit
7558bc09db
@ -1449,7 +1449,13 @@ class Toolbar {
|
||||
node: toolbar_menu
|
||||
})
|
||||
if (data) {
|
||||
this.build(data)
|
||||
try {
|
||||
this.build(data);
|
||||
} catch (err) {
|
||||
console.error(`Error building toolbar "${this.id}":`, err);
|
||||
delete BARS.stored[this.id];
|
||||
this.build(data);
|
||||
}
|
||||
}
|
||||
}
|
||||
build(data, force) {
|
||||
|
Loading…
Reference in New Issue
Block a user