Fix #328 - Missing terracotta map colors

This commit is contained in:
David Vierra 2017-06-27 20:17:48 -10:00
parent d41c298cda
commit 525ca96bac

View File

@ -1133,7 +1133,7 @@ class AnvilMapData(NBTCompoundRef):
return self.colorTable[self.colors]
colorTable = numpy.array([
_colorTable = [
(0, 0, 0, 0),
(0, 0, 0, 0),
(0, 0, 0, 0),
@ -1277,8 +1277,76 @@ class AnvilMapData(NBTCompoundRef):
(78, 1, 0, 255),
(95, 1, 0, 255),
(111, 2, 0, 255),
(58, 1, 0, 255)
], dtype=numpy.uint8)
(58, 1, 0, 255),
(147, 124, 113, 0),
(180, 152, 138, 0),
(209, 177, 161, 0),
(110, 93, 85, 0),
(112, 57, 25, 0),
(137, 70, 31, 0),
(159, 82, 36, 0),
(84, 43, 19, 0),
(105, 61, 76, 0),
(128, 75, 93, 0),
(149, 87, 108, 0),
(78, 46, 57, 0),
(79, 76, 97, 0),
(96, 93, 119, 0),
(112, 108, 138, 0),
(59, 57, 73, 0),
(131, 93, 25, 0),
(160, 114, 31, 0),
(186, 133, 36, 0),
(98, 70, 19, 0),
(72, 82, 37, 0),
(88, 100, 45, 0),
(103, 117, 53, 0),
(54, 61, 28, 0),
(112, 54, 55, 0),
(138, 66, 67, 0),
(160, 77, 78, 0),
(84, 40, 41, 0),
(40, 28, 24, 0),
(49, 35, 30, 0),
(57, 41, 35, 0),
(30, 21, 18, 0),
(95, 75, 69, 0),
(116, 92, 84, 0),
(135, 107, 98, 0),
(71, 56, 51, 0),
(61, 64, 64, 0),
(75, 79, 79, 0),
(87, 92, 92, 0),
(46, 48, 48, 0),
(86, 51, 62, 0),
(105, 62, 75, 0),
(122, 73, 88, 0),
(64, 38, 46, 0),
(53, 43, 64, 0),
(65, 53, 79, 0),
(76, 62, 92, 0),
(40, 32, 48, 0),
(53, 35, 24, 0),
(65, 43, 30, 0),
(76, 50, 35, 0),
(40, 26, 18, 0),
(53, 57, 29, 0),
(65, 70, 36, 0),
(76, 82, 42, 0),
(40, 43, 22, 0),
(100, 42, 32, 0),
(122, 51, 39, 0),
(142, 60, 46, 0),
(75, 31, 24, 0),
(26, 15, 11, 0),
(31, 18, 13, 0),
(37, 22, 16, 0),
(19, 11, 8, 0)
]
_colorTable += [(0, 0, 0, 0)] * (256 - len(_colorTable))
colorTable = numpy.array(_colorTable, dtype=numpy.uint8)
class PlayerAbilitiesRef(nbtattr.NBTCompoundRef):