Improved wrong container size error
This commit is contained in:
parent
820934c186
commit
9b3d18ded5
@ -771,8 +771,12 @@ export class InventoryHelper {
|
||||
|
||||
for (let y = 0; y < fH; y++) {
|
||||
try {
|
||||
const containerRow = container2D[itemLocation.y + y];
|
||||
if (!containerRow) {
|
||||
this.logger.error(`Unable to find container: ${containerId} row line: ${itemLocation.y + y}`);
|
||||
}
|
||||
// Fill the corresponding cells in the container map to show the slot is taken
|
||||
container2D[itemLocation.y + y].fill(1, itemLocation.x, fillTo);
|
||||
containerRow.fill(1, itemLocation.x, fillTo);
|
||||
} catch (e) {
|
||||
this.logger.error(
|
||||
this.localisationService.getText("inventory-unable_to_fill_container", {
|
||||
|
Loading…
Reference in New Issue
Block a user