Permalink
Browse files

GameRegistry.registerBlock(Block, String) changes.

  • Loading branch information...
1 parent a6397cc commit 33ad243d7b81b88bb9621b6ce9312b1025851782 @Havvy committed Jan 11, 2013
Showing with 5 additions and 5 deletions.
  1. +5 −5 tutorial/generic/Generic.java
@@ -143,11 +143,11 @@ private void initBasicItems () {
}
private void initBasicBlocks () {
- GameRegistry.registerBlock(genericDirt);
+ GameRegistry.registerBlock(genericDirt, "genericDirt");
LanguageRegistry.addName(genericDirt, "Generic Dirt");
MinecraftForge.setBlockHarvestLevel(genericDirt, "shovel", 0);
- GameRegistry.registerBlock(genericOre);
+ GameRegistry.registerBlock(genericOre, "genericOre");
LanguageRegistry.addName(genericOre, "Genreric Ore");
MinecraftForge.setBlockHarvestLevel(genericOre, "pickaxe", 3);
}
@@ -166,7 +166,7 @@ private void initDamageValuesAndMetadata () {
}
private void initPacketHandling () {
- GameRegistry.registerBlock(randomBlock);
+ GameRegistry.registerBlock(randomBlock, "randomBlock");
LanguageRegistry.addName(randomBlock, "Random Block");
}
@@ -178,10 +178,10 @@ private void initPlants () {
GameRegistry.addShapelessRecipe(new ItemStack(tomatoSeeds, 4),
new ItemStack(tomatoFruit));
- GameRegistry.registerBlock(tomatoCrop);
+ GameRegistry.registerBlock(tomatoCrop, "tomatoCrop");
}
private void initWorldGen () {
GameRegistry.registerWorldGenerator(new BasicWorldGen());
}
-}
+}

0 comments on commit 33ad243

Please sign in to comment.