Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import java.util.Map;
import java.util.Set;
import java.util.UUID;
import com.boydti.fawe.object.visitor.FaweChunkVisitor;
import net.minecraft.entity.Entity;
import net.minecraft.entity.EntityList;
import net.minecraft.entity.player.EntityPlayer;
Expand Down Expand Up @@ -85,12 +86,33 @@ public NibbleArray getExtendedIdArray(int i) {
return extended[i];
}


@Override
public int getBlockCombinedId(int x, int y, int z) {
int combined = super.getBlockCombinedId(x, y, z);
return combined == 1 ? 0 : combined;
}

@Override
public void forEachQueuedBlock(FaweChunkVisitor onEach) {
for (int y = 0; y < HEIGHT; y++) {
for (int z = 0; z < 16; z++) {
for (int x = 0; x < 16; x++) {
char[] array = getIdArray(FaweCache.getI(y, z, x));
if (array == null) {
continue;
}
char raw = array[FaweCache.getJ(y, z, x)];
if (raw == 0) {
continue;
}
int combined = raw == 1 ? 0 : raw;
onEach.run(x, y, z, combined);
}
}
}
}

@Override
public void setBlock(int x, int y, int z, int id) {
setBlock(x, y, z, id, 0);
Expand Down