kopia lustrzana https://github.com/backface/turtlestitch
Merge pull request #2011 from bromagosa/mod-project-load-fix
Fixes freeze when trying to load a block into a nonexistent categoryupd4.2
commit
145c60fff0
2
store.js
2
store.js
|
|
@ -1148,7 +1148,7 @@ SnapSerializer.prototype.loadBlock = function (model, isReporter, object) {
|
|||
: null
|
||||
);
|
||||
}
|
||||
if (!info) {
|
||||
if (!info || !contains(SpriteMorph.prototype.categories, info.category)) {
|
||||
return this.obsoleteBlock(isReporter);
|
||||
}
|
||||
block = info.type === 'command' ? new CustomCommandBlockMorph(
|
||||
|
|
|
|||
Ładowanie…
Reference in New Issue