also sanitize grass with dirt above it.
This commit is contained in:
parent
f865c78e8d
commit
cb65e25c95
@ -145,6 +145,7 @@ class InfdevChunk(MCLevel):
|
||||
def sanitizeBlocks(self):
|
||||
#change grass to dirt where needed so Minecraft doesn't flip out and die
|
||||
grass = self.Blocks == self.materials.Grass.ID
|
||||
grass |= self.Blocks == self.materials.Dirt.ID
|
||||
badgrass = grass[:, :, 1:] & grass[:, :, :-1]
|
||||
|
||||
self.Blocks[:, :, :-1][badgrass] = self.materials.Dirt.ID
|
||||
|
Reference in New Issue
Block a user