Skip to content

Commit

Permalink
Suppress deprecation warnings for BlockProperties.
Browse files Browse the repository at this point in the history
Access by id may or may not be changed internally, depending on what
happens on the API side.

For performance reasons we might like to do without passing on extra
stuff like Material, or even do String-comparison.

If ids will become more expensive to use than other ways, or if it will
be possible/accepted that ids get reused during runtime, then we will
have to change all internals.
  • Loading branch information
asofold committed Jun 14, 2014
1 parent 98f101e commit 785de7c
Showing 1 changed file with 3 additions and 2 deletions.
Expand Up @@ -36,6 +36,7 @@
* - reading (all) the default properties from a file too.
*
*/
@SuppressWarnings("deprecation")
public class BlockProperties {

/**
Expand Down Expand Up @@ -447,8 +448,8 @@ private static void initTools(final MCAccess mcAccess, final WorldConfigProvider

tools.put(359, new ToolProps(ToolType.SHEARS, MaterialBase.NONE));
}

private static void initBlocks(final MCAccess mcAccess, final WorldConfigProvider<?> worldConfigProvider) {
private static void initBlocks(final MCAccess mcAccess, final WorldConfigProvider<?> worldConfigProvider) {
Arrays.fill(blocks, null);
// Initalize block flags
// Generic initialization.
Expand Down

0 comments on commit 785de7c

Please sign in to comment.