changed _load_image to self.load_image in textures.py (thanks Nightgunner5)
This commit is contained in:
@@ -290,7 +290,7 @@ class Textures(object):
|
|||||||
if hasattr(self, "lightcolor"):
|
if hasattr(self, "lightcolor"):
|
||||||
return self.lightcolor
|
return self.lightcolor
|
||||||
try:
|
try:
|
||||||
lightcolor = list(_load_image("light_normal.png").getdata())
|
lightcolor = list(self.load_image("light_normal.png").getdata())
|
||||||
except Exception:
|
except Exception:
|
||||||
logging.warning("Light color image could not be found.")
|
logging.warning("Light color image could not be found.")
|
||||||
lightcolor = None
|
lightcolor = None
|
||||||
|
|||||||
Reference in New Issue
Block a user