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'
|
||||
Player = 'Player'
|
||||
|
||||
DIM_NETHER = -1
|
||||
DIM_END = 1
|
||||
|
||||
__all__ = ["ZeroChunk", "InfdevChunk", "ChunkedLevelMixin", "MCInfdevOldLevel", "MCAlphaDimension", "ZipSchematic"]
|
||||
|
||||
|
||||
import re
|
||||
|
||||
convert = lambda text: int(text) if text.isdigit() else text
|
||||
@ -853,7 +857,10 @@ class InfdevChunk(EntityLevel):
|
||||
return self.isLoaded() and self.root_tag == None
|
||||
|
||||
def generateHeightMap(self):
|
||||
extractLightMap(self.materials, self.Blocks, self.HeightMap)
|
||||
if self.world.dimNo == DIM_NETHER:
|
||||
self.HeightMap[:] = 0
|
||||
else:
|
||||
extractLightMap(self.materials, self.Blocks, self.HeightMap)
|
||||
|
||||
def chunkChanged(self, calcLighting=True):
|
||||
""" You are required to call this function after you are done modifying
|
||||
|
Reference in New Issue
Block a user