0

Checks for terrain.png in CWD first. Thanks alexjurkiewicz!

This commit is contained in:
Andrew Brown
2010-08-29 11:37:18 -04:00
parent 70361f3a6b
commit 8c162ce890

View File

@@ -9,6 +9,10 @@ import numpy
from PIL import Image, ImageEnhance
def _get_terrain_image():
# Check the current directory for terrain.png first:
if os.path.isfile("terrain.png"):
return Image.open("terrain.png")
if "darwin" in sys.platform:
# On Macs, terrain.png could lie at
# "/Applications/minecraft/terrain.png" for custom terrain. Try this