mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-14 11:45:52 -07:00
Updated to use mc-dev rename revision 1
This commit is contained in:
@@ -10,7 +10,7 @@ public class BlockSand extends Block {
|
||||
super(i, j, Material.SAND);
|
||||
}
|
||||
|
||||
public void a(World world, int i, int j, int k) {
|
||||
public void onPlace(World world, int i, int j, int k) {
|
||||
world.c(i, j, k, this.id, this.d());
|
||||
}
|
||||
|
||||
@@ -29,9 +29,9 @@ public class BlockSand extends Block {
|
||||
if (!instaFall && world.a(i - b0, j - b0, k - b0, i + b0, j + b0, k + b0)) {
|
||||
if (!world.isStatic) {
|
||||
// CraftBukkit Change call to add data
|
||||
EntityFallingSand entityfallingsand = new EntityFallingSand(world, (double) ((float) i + 0.5F), (double) ((float) j + 0.5F), (double) ((float) k + 0.5F), this.id, world.getData(i, j, k));
|
||||
EntityFallingBlock entityfallingblock = new EntityFallingBlock(world, (double) ((float) i + 0.5F), (double) ((float) j + 0.5F), (double) ((float) k + 0.5F), this.id, world.getData(i, j, k));
|
||||
|
||||
world.addEntity(entityfallingsand);
|
||||
world.addEntity(entityfallingblock);
|
||||
}
|
||||
} else {
|
||||
world.setTypeId(i, j, k, 0);
|
||||
|
Reference in New Issue
Block a user