mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-11 10:12:06 -07:00
Update CraftBukkit to Minecraft 1.3.1
This commit is contained in:
committed by
Travis Watkins
parent
08e2923bd4
commit
a43d621c01
@@ -9,9 +9,10 @@ public class ItemFireball extends Item {
|
||||
|
||||
public ItemFireball(int i) {
|
||||
super(i);
|
||||
this.a(CreativeModeTab.f);
|
||||
}
|
||||
|
||||
public boolean interactWith(ItemStack itemstack, EntityHuman entityhuman, World world, int i, int j, int k, int l) {
|
||||
public boolean interactWith(ItemStack itemstack, EntityHuman entityhuman, World world, int i, int j, int k, int l, float f, float f1, float f2) {
|
||||
if (world.isStatic) {
|
||||
return true;
|
||||
} else {
|
||||
@@ -39,7 +40,7 @@ public class ItemFireball extends Item {
|
||||
++i;
|
||||
}
|
||||
|
||||
if (!entityhuman.d(i, j, k)) {
|
||||
if (!entityhuman.e(i, j, k)) {
|
||||
return false;
|
||||
} else {
|
||||
int i1 = world.getTypeId(i, j, k);
|
||||
@@ -60,7 +61,7 @@ public class ItemFireball extends Item {
|
||||
}
|
||||
// CraftBukkit end
|
||||
|
||||
world.makeSound((double) i + 0.5D, (double) j + 0.5D, (double) k + 0.5D, "fire.ignite", 1.0F, c.nextFloat() * 0.4F + 0.8F);
|
||||
world.makeSound((double) i + 0.5D, (double) j + 0.5D, (double) k + 0.5D, "fire.ignite", 1.0F, d.nextFloat() * 0.4F + 0.8F);
|
||||
world.setTypeId(i, j, k, Block.FIRE.id);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user