diff options
author | EvilSeph <evilseph@gmail.com> | 2011-07-27 21:18:52 -0400 |
---|---|---|
committer | EvilSeph <evilseph@gmail.com> | 2011-07-27 23:25:21 -0400 |
commit | 226318d8af3a20746230b9e81985e618fabcf915 (patch) | |
tree | 81ae470f8dd5ee73b7736cdf37faded46776cd69 /src/main/java/net | |
parent | 4fdc2255283957e8723ea15e66a50b1a05ee4319 (diff) | |
download | craftbukkit-226318d8af3a20746230b9e81985e618fabcf915.tar craftbukkit-226318d8af3a20746230b9e81985e618fabcf915.tar.gz craftbukkit-226318d8af3a20746230b9e81985e618fabcf915.tar.lz craftbukkit-226318d8af3a20746230b9e81985e618fabcf915.tar.xz craftbukkit-226318d8af3a20746230b9e81985e618fabcf915.zip |
Removed deprecated methods.
getNote() that returns a byte has been replaced by getRawNote().
teleportTo(Location) has been replaced by teleport(location).
teleportTo(Entity) has been replaced by teleport(Entity).
SnowForm event has been replaced by BlockForm event.
Diffstat (limited to 'src/main/java/net')
-rw-r--r-- | src/main/java/net/minecraft/server/World.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main/java/net/minecraft/server/World.java b/src/main/java/net/minecraft/server/World.java index 736ae38c..aacbef13 100644 --- a/src/main/java/net/minecraft/server/World.java +++ b/src/main/java/net/minecraft/server/World.java @@ -20,7 +20,6 @@ import org.bukkit.craftbukkit.CraftWorld; import org.bukkit.craftbukkit.event.CraftEventFactory; import org.bukkit.event.block.BlockCanBuildEvent; import org.bukkit.event.block.BlockPhysicsEvent; -import org.bukkit.event.block.SnowFormEvent; import org.bukkit.event.block.BlockFormEvent; import org.bukkit.event.entity.CreatureSpawnEvent; import org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason; @@ -1915,12 +1914,13 @@ public class World implements IBlockAccess { i2 = chunk.getTypeId(l, k1, j1); if (this.v() && i2 == 0 && Block.SNOW.canPlace(this, l + i, k1, j1 + j) && l1 != 0 && l1 != Block.ICE.id && Block.byId[l1].material.isSolid()) { // CraftBukkit start - SnowFormEvent snow = new SnowFormEvent(this.getWorld().getBlockAt(l + i, k1, j1 + j)); + BlockState blockState = this.getWorld().getBlockAt(l + i, k1, j1 + j).getState(); + blockState.setTypeId(Block.SNOW.id); + BlockFormEvent snow = new BlockFormEvent(blockState.getBlock(), blockState); this.getServer().getPluginManager().callEvent(snow); if (!snow.isCancelled()) { - this.setTypeId(l + i, k1, j1 + j, snow.getMaterial().getId()); - this.setData(l + i, k1, j1 + j, snow.getData()); + blockState.update(true); } // CraftBukkit end } |