From 6bdcd32a6fdb8cfbd7f9892e7f54e21e2f1abbd6 Mon Sep 17 00:00:00 2001 From: Nicolas F Date: Tue, 9 Jul 2019 18:11:29 +0200 Subject: [PATCH] world: remove redundant stride 1 in iteration IRC chairfarters are pedantic. --- overviewer_core/world.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/overviewer_core/world.py b/overviewer_core/world.py index 94019d6..3ce42ff 100644 --- a/overviewer_core/world.py +++ b/overviewer_core/world.py @@ -1177,8 +1177,8 @@ class RegionSet(object): blocks = numpy.empty((4096,), dtype=numpy.uint16) data = numpy.empty((4096,), dtype=numpy.uint8) block_states = self._packed_longarray_to_shorts(section['BlockStates'], 4096) - blocks[::1] = translated_blocks[block_states] - data[::1] = translated_data[block_states] + blocks[:] = translated_blocks[block_states] + data[:] = translated_data[block_states] # Turn the Data array into a 16x16x16 matrix, same as SkyLight blocks = blocks.reshape((16, 16, 16))