mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-23 04:32:50 -04:00
Fix /measure with custom blocks
This commit is contained in:
parent
cca5ecb62e
commit
e0d5878d87
@ -43,7 +43,7 @@ namespace MCGalaxy.Commands.Building {
|
|||||||
bool DoMeasure(Player p, Vec3S32[] m, object state, BlockID block) {
|
bool DoMeasure(Player p, Vec3S32[] m, object state, BlockID block) {
|
||||||
BlockID[] toCount = (BlockID[])state;
|
BlockID[] toCount = (BlockID[])state;
|
||||||
Vec3S32 min = Vec3S32.Min(m[0], m[1]), max = Vec3S32.Max(m[0], m[1]);
|
Vec3S32 min = Vec3S32.Min(m[0], m[1]), max = Vec3S32.Max(m[0], m[1]);
|
||||||
int[] counts = new int[Block.Extended];
|
int[] counts = new int[Block.ExtendedCount];
|
||||||
|
|
||||||
for (ushort y = (ushort)min.Y; y <= (ushort)max.Y; y++)
|
for (ushort y = (ushort)min.Y; y <= (ushort)max.Y; y++)
|
||||||
for (ushort z = (ushort)min.Z; z <= (ushort)max.Z; z++)
|
for (ushort z = (ushort)min.Z; z <= (ushort)max.Z; z++)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user