Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

1.0.0 - remove count

  • Loading branch information...
commit 0e01fbda15b97e2494055eb35e24d1fcc5f4a2d6 1 parent 82774ef
Max Ogden authored
Showing with 7 additions and 6 deletions.
  1. +1 −4 index.js
  2. +6 −2 package.json
5 index.js
View
@@ -35,8 +35,6 @@ MCA2JSON.prototype.convert = function(buf, regionX, regionZ) {
var self = this
var region = mcRegion(buf, regionX, regionZ)
var lastChunk
- var count = 0
- function onChunk() { count++ }
function onVoxel(x, y, z, block, chunkX, chunkZ) {
var currentChunk = chunkX + ',' + chunkZ
if (!lastChunk) lastChunk = currentChunk
@@ -46,7 +44,6 @@ MCA2JSON.prototype.convert = function(buf, regionX, regionZ) {
var cidx = c.join('|')
var finishedChunk = self.chunks[cidx]
if (!finishedChunk) return
- finishedChunk._count = count
self.emit('data', finishedChunk)
})
lastChunk = currentChunk
@@ -69,7 +66,7 @@ MCA2JSON.prototype.convert = function(buf, regionX, regionZ) {
}
self.chunks[chunkIDX].voxels[idx] = block.id
}
- var opts = {ymin: 0, onVoxel: onVoxel, onChunk: onChunk }
+ var opts = {ymin: 0, onVoxel: onVoxel }
var mcaReader = mca(region, opts)
var distance = this.opts.distance || 1
if (this.opts.start) {
8 package.json
View
@@ -1,13 +1,17 @@
{
"name": "mca2js",
- "version": "0.2.1",
+ "version": "1.0.0",
"description": "convert minecraft(tm) .mca region files to JS typed arrays",
"main": "index.js",
"scripts": {
"start": "beefy demo.js",
"test": "node test.js"
},
- "repository": "",
+ "keywords": ["voxel", "voxel.js"],
+ "repository": {
+ "type": "git",
+ "url": "git://github.com/maxogden/mca2js.git"
+ },
"author": "@maxogden",
"license": "BSD",
"dependencies": {
Please sign in to comment.
Something went wrong with that request. Please try again.