@@ -1,14 +1,15 @@
|
||||
--- a/net/minecraft/server/EntitySmallFireball.java
|
||||
+++ b/net/minecraft/server/EntitySmallFireball.java
|
||||
@@ -1,5 +1,7 @@
|
||||
package net.minecraft.server;
|
||||
--- a/net/minecraft/world/entity/projectile/EntitySmallFireball.java
|
||||
+++ b/net/minecraft/world/entity/projectile/EntitySmallFireball.java
|
||||
@@ -14,6 +14,8 @@
|
||||
import net.minecraft.world.phys.MovingObjectPositionBlock;
|
||||
import net.minecraft.world.phys.MovingObjectPositionEntity;
|
||||
|
||||
+import org.bukkit.event.entity.EntityCombustByEntityEvent; // CraftBukkit
|
||||
+
|
||||
public class EntitySmallFireball extends EntityFireballFireball {
|
||||
|
||||
public EntitySmallFireball(EntityTypes<? extends EntitySmallFireball> entitytypes, World world) {
|
||||
@@ -8,6 +10,11 @@
|
||||
@@ -22,6 +24,11 @@
|
||||
|
||||
public EntitySmallFireball(World world, EntityLiving entityliving, double d0, double d1, double d2) {
|
||||
super(EntityTypes.SMALL_FIREBALL, entityliving, d0, d1, d2, world);
|
||||
@@ -20,7 +21,7 @@
|
||||
}
|
||||
|
||||
public EntitySmallFireball(World world, double d0, double d1, double d2, double d3, double d4, double d5) {
|
||||
@@ -24,7 +31,14 @@
|
||||
@@ -38,7 +45,14 @@
|
||||
Entity entity1 = this.getShooter();
|
||||
int i = entity.getFireTicks();
|
||||
|
||||
@@ -36,7 +37,7 @@
|
||||
boolean flag = entity.damageEntity(DamageSource.fireball(this, entity1), 5.0F);
|
||||
|
||||
if (!flag) {
|
||||
@@ -43,10 +57,10 @@
|
||||
@@ -57,10 +71,10 @@
|
||||
if (!this.world.isClientSide) {
|
||||
Entity entity = this.getShooter();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user