glass block with a heart shouldn't crash (fixes #84)
This commit is contained in:
parent
71abc13330
commit
073aba65ab
@ -2634,7 +2634,7 @@ export class Tileset {
|
|||||||
_draw_encased_item(drawspec, name, tile, packet) {
|
_draw_encased_item(drawspec, name, tile, packet) {
|
||||||
//draw the encased item
|
//draw the encased item
|
||||||
if (tile !== null && tile.encased_item !== undefined && tile.encased_item !== null) {
|
if (tile !== null && tile.encased_item !== undefined && tile.encased_item !== null) {
|
||||||
this._draw_standard(this.layout[tile.encased_item], tile.encased_item, null, packet);
|
this.draw_drawspec(this.layout[tile.encased_item], tile.encased_item, null, packet);
|
||||||
}
|
}
|
||||||
//then draw the glass block
|
//then draw the glass block
|
||||||
this._draw_standard(drawspec.base, name, tile, packet);
|
this._draw_standard(drawspec.base, name, tile, packet);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user