MinecraftForge/MinecraftForge — pull request #233 by Cloudhunter (2012-10-29 01:23:33+00:00)
Title: Fix up getPickBlock to avoid the need for idPicked, so it can be used server side

Uses a map for all the 1:1 mappings, and adds a special case for flower pots - if all else fails, will attempt to call idPicked (which would only exist on the client) to keep compatibility at least clientside with mods which override that.

If that fails, will just return the block id, as per vanilla behaviour.