Fix out of bounds error on top layer due to material grabber
This commit is contained in:
@@ -114,7 +114,7 @@ export class StructureInstance {
|
||||
if (!this.options.isEnabled)
|
||||
throw new InstanceNotPlacedError(`[Construct] Instance '${this.options.instanceName}' is not placed.`);
|
||||
if (this.hasLayerSelected())
|
||||
return this.getLayerBlocks(this.getLayer());
|
||||
return this.getLayerBlocks(this.getLayer() - 1);
|
||||
return this.getAllBlocks();
|
||||
}
|
||||
|
||||
|
||||
@@ -36,7 +36,8 @@ export const resetToBlockStates = {
|
||||
cluster_count: 0,
|
||||
respawn_anchor_charge: 0,
|
||||
turtle_egg_count: 0,
|
||||
cluster_count: 0
|
||||
cluster_count: 0,
|
||||
end_portal_eye_bit: false
|
||||
};
|
||||
|
||||
export const blockIdToItemStackMap = {
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user