diff options
author | Erik Broes <erikbroes@grum.nl> | 2011-06-12 00:02:58 +0200 |
---|---|---|
committer | Erik Broes <erikbroes@grum.nl> | 2011-06-12 00:30:52 +0200 |
commit | 96b1b8a10cec88c724b83541aed6f87b188f5e14 (patch) | |
tree | 7058be20c6adb15cad2c823784b04340b1b1e44f /src/main/java/net/minecraft/server/ItemFlintAndSteel.java | |
parent | 938db4de2d86d8cc05c258eeae2c43ef428588f3 (diff) | |
download | craftbukkit-96b1b8a10cec88c724b83541aed6f87b188f5e14.tar craftbukkit-96b1b8a10cec88c724b83541aed6f87b188f5e14.tar.gz craftbukkit-96b1b8a10cec88c724b83541aed6f87b188f5e14.tar.lz craftbukkit-96b1b8a10cec88c724b83541aed6f87b188f5e14.tar.xz craftbukkit-96b1b8a10cec88c724b83541aed6f87b188f5e14.zip |
Generic cleanup
Diffstat (limited to 'src/main/java/net/minecraft/server/ItemFlintAndSteel.java')
-rw-r--r-- | src/main/java/net/minecraft/server/ItemFlintAndSteel.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/net/minecraft/server/ItemFlintAndSteel.java b/src/main/java/net/minecraft/server/ItemFlintAndSteel.java index 7bae873c..b13ae95f 100644 --- a/src/main/java/net/minecraft/server/ItemFlintAndSteel.java +++ b/src/main/java/net/minecraft/server/ItemFlintAndSteel.java @@ -66,9 +66,9 @@ public class ItemFlintAndSteel extends Item { itemstack.damage(1, entityhuman); return false; } - // CraftBukkit end - BlockState blockState = CraftBlockState.getBlockState(world, i, j, k); // CraftBukkit + BlockState blockState = CraftBlockState.getBlockState(world, i, j, k); + // CraftBukkit end world.makeSound((double) i + 0.5D, (double) j + 0.5D, (double) k + 0.5D, "fire.ignite", 1.0F, b.nextFloat() * 0.4F + 0.8F); world.setTypeId(i, j, k, Block.FIRE.id); @@ -77,7 +77,7 @@ public class ItemFlintAndSteel extends Item { BlockPlaceEvent placeEvent = CraftEventFactory.callBlockPlaceEvent(world, entityhuman, blockState, clickedX, clickedY, clickedZ, Block.FIRE.id); if (placeEvent.isCancelled() || !placeEvent.canBuild()) { - placeEvent.getBlockPlaced().setTypeIdAndData(0, (byte)0, false); + placeEvent.getBlockPlaced().setTypeIdAndData(0, (byte) 0, false); return false; } // CraftBukkit end |