Checks for terrain.png in CWD first. Thanks alexjurkiewicz!
This commit is contained in:
@@ -9,6 +9,10 @@ import numpy
|
|||||||
from PIL import Image, ImageEnhance
|
from PIL import Image, ImageEnhance
|
||||||
|
|
||||||
def _get_terrain_image():
|
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:
|
if "darwin" in sys.platform:
|
||||||
# On Macs, terrain.png could lie at
|
# On Macs, terrain.png could lie at
|
||||||
# "/Applications/minecraft/terrain.png" for custom terrain. Try this
|
# "/Applications/minecraft/terrain.png" for custom terrain. Try this
|
||||||
|
|||||||
Reference in New Issue
Block a user