Set HeightMap to all zeros in the Nether to match what the game does. Otherwise, Nether Wart won't plant in low light.
This commit is contained in:
parent
0f52c0e655
commit
f1a8bf76fc
@ -38,8 +38,12 @@ SizeOnDisk = 'SizeOnDisk' #maybe update this?
|
|||||||
Time = 'Time'
|
Time = 'Time'
|
||||||
Player = 'Player'
|
Player = 'Player'
|
||||||
|
|
||||||
|
DIM_NETHER = -1
|
||||||
|
DIM_END = 1
|
||||||
|
|
||||||
__all__ = ["ZeroChunk", "InfdevChunk", "ChunkedLevelMixin", "MCInfdevOldLevel", "MCAlphaDimension", "ZipSchematic"]
|
__all__ = ["ZeroChunk", "InfdevChunk", "ChunkedLevelMixin", "MCInfdevOldLevel", "MCAlphaDimension", "ZipSchematic"]
|
||||||
|
|
||||||
|
|
||||||
import re
|
import re
|
||||||
|
|
||||||
convert = lambda text: int(text) if text.isdigit() else text
|
convert = lambda text: int(text) if text.isdigit() else text
|
||||||
@ -853,6 +857,9 @@ class InfdevChunk(EntityLevel):
|
|||||||
return self.isLoaded() and self.root_tag == None
|
return self.isLoaded() and self.root_tag == None
|
||||||
|
|
||||||
def generateHeightMap(self):
|
def generateHeightMap(self):
|
||||||
|
if self.world.dimNo == DIM_NETHER:
|
||||||
|
self.HeightMap[:] = 0
|
||||||
|
else:
|
||||||
extractLightMap(self.materials, self.Blocks, self.HeightMap)
|
extractLightMap(self.materials, self.Blocks, self.HeightMap)
|
||||||
|
|
||||||
def chunkChanged(self, calcLighting=True):
|
def chunkChanged(self, calcLighting=True):
|
||||||
|
Reference in New Issue
Block a user