0
Commit Graph

10 Commits

Author SHA1 Message Date
Nicolas F
5b0430f94b textures: greatly simplify find_file and friends
find_file contained a lot of code for searching textures in ways that
haven't been relevant for years. For example, it had workarounds for
MCPatcher, a tool that hasn't been updated since 2015.

Instead of searching in multiple paths that will never succeed in a
resource pack and Minecraft version that actually work, just look
for the filename that the block functions ask for.

Also, if we already have a manually specified resource pack open,
we shouldn't repeatedly re-open it. Furthermore, it's best if
the very first thing find_file does is try to find the file in
the resource pack or client jar we've already opened previously.

We can now also remove chest.png, ender.png, foliage.png, grass.png
and normal_double.png because Minecraft ships them, so we don't
need to ship them ourselves too. Us shipping them actually hid the
whole find_file garbagefire.

Concerns issue #1604.
2019-07-04 18:24:57 +02:00
Nicolas F
c0875a9ceb Add replacement for the location marker 2016-12-10 14:56:17 -05:00
Nicolas F
2e07acc422 Add replacement for home marker, add icon_src dir
I added the icon_src dir to textures so that it doesn't get copied
over automatically like web_assets do.
2016-12-10 14:56:17 -05:00
Aaron Griffith
7bbb077704 added light color texture, since it's apparently not part of minecraft anymore 2013-12-01 16:30:49 -05:00
joe-mojo
603e60bd0d Fixed the way texture.py searched for foliage, grass and chests textures.
This is a "quick-and-dirty fix", you may improve it as I'm novice in Python.
Default files in data/textures have been renamed to reflect changes in new 1.6 texture packs (aka resource packs)
2013-08-27 23:20:12 +02:00
Andrew Chin
840e7e2193 Added chest images to textures folder
This is required if a user is using minecraft < 1.3
2012-08-01 13:17:33 -04:00
Aaron Griffith
bcc1e61b0d data/textures is now checked *last*, updated biome colors 2012-03-01 16:46:23 -05:00
Aaron Griffith
ce214c19bc added color tables from biome extractor
Now, the textures loader doesn't have to know about the world path;
this works better in a multi-world environment.
2012-02-08 13:59:43 -05:00
Aaron Griffith
383b01859f Merge branch 'master' into py-package
Conflicts:
	overviewer_core/data/config.js
	overviewer_core/data/web_assets/functions.js
	overviewer_core/data/web_assets/style.css
	setup.py
	web_assets/overviewer.css
	web_assets/style.css
2011-05-10 20:19:10 -04:00
Aaron Griffith
42596416d9 sdist and install now work
next step is using a custom data dir, and falling back on the package
data dir. Also, fixing --version.
2011-03-29 13:49:50 -04:00