From 1f76441b5ca9e28de610e2759f3707fbf5eb84d8 Mon Sep 17 00:00:00 2001 From: jordan4ibanez Date: Tue, 2 Aug 2022 18:22:21 -0400 Subject: [PATCH] Reorganize overloads --- source/world/chunk.d | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/source/world/chunk.d b/source/world/chunk.d index 4c0f05f..629cae3 100644 --- a/source/world/chunk.d +++ b/source/world/chunk.d @@ -98,14 +98,15 @@ public class Chunk { return -1; } } - int getBlock(int index) { - return this.block[index]; - } void setBlock(int x, int y, int z, int newBlock) { if (collide(x,y,z)) { this.block[positionToIndex(x,y,z)] = newBlock; } } + // Overloads + int getBlock(int index) { + return this.block[index]; + } void setBlock(int index, int newBlock) { this.block[index] = newBlock; }