Skip to content

Commit

Permalink
Rename 'paletteindex' to 'palette_index'
Browse files Browse the repository at this point in the history
  • Loading branch information
juhdanad authored and sofar committed Apr 9, 2017
1 parent fb9701b commit c183669
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/itemdef.cpp
Expand Up @@ -431,7 +431,7 @@ class CItemDefManager: public IWritableItemDefManager
return directcolor;
// See if there is a palette
Palette *palette = getPalette(stack.name, client);
const std::string &index = stack.metadata.getString("paletteindex", 0);
const std::string &index = stack.metadata.getString("palette_index", 0);
if ((palette != NULL) && (index != ""))
return (*palette)[mystoi(index, 0, 255)];
// Fallback color
Expand Down

0 comments on commit c183669

Please sign in to comment.