@@ -1,7 +1,8 @@
|
||||
--- a/net/minecraft/server/EntityFireball.java
|
||||
+++ b/net/minecraft/server/EntityFireball.java
|
||||
@@ -1,10 +1,14 @@
|
||||
package net.minecraft.server;
|
||||
--- a/net/minecraft/world/entity/projectile/EntityFireball.java
|
||||
+++ b/net/minecraft/world/entity/projectile/EntityFireball.java
|
||||
@@ -15,11 +15,15 @@
|
||||
import net.minecraft.world.phys.MovingObjectPosition;
|
||||
import net.minecraft.world.phys.Vec3D;
|
||||
|
||||
+import org.bukkit.craftbukkit.event.CraftEventFactory; // CraftBukkit
|
||||
+
|
||||
@@ -15,7 +16,7 @@
|
||||
|
||||
protected EntityFireball(EntityTypes<? extends EntityFireball> entitytypes, World world) {
|
||||
super(entitytypes, world);
|
||||
@@ -14,6 +18,12 @@
|
||||
@@ -29,6 +33,12 @@
|
||||
this(entitytypes, world);
|
||||
this.setPositionRotation(d0, d1, d2, this.yaw, this.pitch);
|
||||
this.af();
|
||||
@@ -28,7 +29,7 @@
|
||||
double d6 = (double) MathHelper.sqrt(d3 * d3 + d4 * d4 + d5 * d5);
|
||||
|
||||
if (d6 != 0.0D) {
|
||||
@@ -49,6 +59,12 @@
|
||||
@@ -64,6 +74,12 @@
|
||||
|
||||
if (movingobjectposition.getType() != MovingObjectPosition.EnumMovingObjectType.MISS) {
|
||||
this.a(movingobjectposition);
|
||||
@@ -41,7 +42,7 @@
|
||||
}
|
||||
|
||||
this.checkBlockCollisions();
|
||||
@@ -133,6 +149,11 @@
|
||||
@@ -148,6 +164,11 @@
|
||||
Entity entity = damagesource.getEntity();
|
||||
|
||||
if (entity != null) {
|
||||
|
||||
Reference in New Issue
Block a user