SpoutDev/SpoutPluginAPI — pull request #4 by seijo (2012-02-10 03:18:39+00:00)
Title: Fixed that dye with a data value != 0 could not be retrieved using MaterialData.getMaterial()

The variable GenericItem.subtypes was set to false for all dyes.
So the check if a material has subtypes failed in MaterialData.getMaterial() and returned an ink sac for all data values.

https://github.com/SpoutDev/SpoutPluginAPI/blob/master/src/main/java/org/getspout/spoutapi/material/item/Dye.java#L21

https://github.com/SpoutDev/SpoutPluginAPI/blob/master/src/main/java/org/getspout/spoutapi/material/item/GenericItem.java#L37

https://github.com/SpoutDev/SpoutPluginAPI/blob/master/src/main/java/org/getspout/spoutapi/material/MaterialData.java#L476