summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin Chabowski <kevin@kch42.de>2013-09-19 23:59:06 +0200
committerKevin Chabowski <kevin@kch42.de>2013-09-19 23:59:06 +0200
commitcc89788ad7f02765cd94c4105661ba3f5512291f (patch)
tree5741ca6c0458311561560b5c5167044561cd87b5
parent878fbcc3497fc733ec137973ab943e8ef47f36ac (diff)
parenta7a310f4ddd89826355661ad4a2f560ae5ca42eb (diff)
downloadbiomed-cc89788ad7f02765cd94c4105661ba3f5512291f.tar.gz
biomed-cc89788ad7f02765cd94c4105661ba3f5512291f.tar.bz2
biomed-cc89788ad7f02765cd94c4105661ba3f5512291f.zip
Merge branch 'master' into minecraft-1.7
-rw-r--r--region_wrapper.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/region_wrapper.go b/region_wrapper.go
index a56f8dd..2f8abe4 100644
--- a/region_wrapper.go
+++ b/region_wrapper.go
@@ -243,7 +243,7 @@ func (rw *RegionWrapper) GetBiomeAt(x, z int) (mcmap.Biome, bool) {
}
func fixFreeze(bx, bz int, chunk *mcmap.Chunk) (newcol *gdk.Color) {
- for y := chunk.Height(bx, bz); y >= 0; y-- {
+ for y := mcmap.ChunkSizeY - 1; y >= 0; y-- {
if blk := chunk.Block(bx, y, bz); blk.ID != mcmap.BlkAir {
if (blk.ID == mcmap.BlkStationaryWater) || (blk.ID == mcmap.BlkWater) {
blk.ID = mcmap.BlkIce
@@ -265,7 +265,7 @@ func fixFreeze(bx, bz int, chunk *mcmap.Chunk) (newcol *gdk.Color) {
}
func fixMelt(bx, bz int, chunk *mcmap.Chunk) (newcol *gdk.Color) {
- for y := chunk.Height(bx, bz); y >= 0; y-- {
+ for y := mcmap.ChunkSizeY - 1; y >= 0; y-- {
if blk := chunk.Block(bx, y, bz); blk.ID != mcmap.BlkAir {
if blk.ID == mcmap.BlkIce {
blk.ID = mcmap.BlkStationaryWater