add TerrainPopulated setting to InfdevChunk

This commit is contained in:
David Vierra 2010-10-25 01:54:05 -10:00
parent e2c93f5c06
commit d25b9f307f

View File

@ -1615,6 +1615,15 @@ class InfdevChunk(MCLevel):
return self.root_tag[Level][TileEntities] return self.root_tag[Level][TileEntities]
TileEntities = property(getTileEntities); TileEntities = property(getTileEntities);
@property
def TerrainPopulated(self):
return self.root_tag[Level]["TerrainPopulated"].value;
@TerrainPopulated.setter
def TerrainPopulated(self, val):
"""True or False. If False, the game will populate the chunk with
ores and vegetation on next load"""
self.root_tag[Level]["TerrainPopulated"].value = val;
def generateHeightMap(self): def generateHeightMap(self):
if None is self.root_tag: self.load(); if None is self.root_tag: self.load();