somethingodd/odditem — pull request #10 by guillaume-algis (2012-04-05 21:33:00+00:00)
Title: fix /odditem not getting the right aliases for items using the 'durability' field for custom value storage (like potions)

`/odditem` did not work on items using their `durability` field for custom data, like dyes and potions. This fix the issue by putting the durability field to `0` only for items not found in the `aliases` Map (ie. tools).

This test isn't reliable, and could break things (even more) in the future:

```java
if (itemStack.getTypeId() > 255)
```

The `itemStack.clone()` line is more a readability issue :)