Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit c183669

Browse files
juhdanadsofar
authored andcommittedApr 9, 2017
Rename 'paletteindex' to 'palette_index'
1 parent fb9701b commit c183669

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

Diff for: ‎src/itemdef.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@ class CItemDefManager: public IWritableItemDefManager
431431
return directcolor;
432432
// See if there is a palette
433433
Palette *palette = getPalette(stack.name, client);
434-
const std::string &index = stack.metadata.getString("paletteindex", 0);
434+
const std::string &index = stack.metadata.getString("palette_index", 0);
435435
if ((palette != NULL) && (index != ""))
436436
return (*palette)[mystoi(index, 0, 255)];
437437
// Fallback color

0 commit comments

Comments
 (0)
Please sign in to comment.