mirror of
https://github.com/PurpurMC/Purpur.git
synced 2026-02-17 16:37:43 +01:00
Fix #118 Phantom fire time not working
This commit is contained in:
@@ -6219,10 +6219,10 @@ index 0000000000000000000000000000000000000000..a01524c6abaec13d7249d7aba6da9e4b
|
|||||||
+}
|
+}
|
||||||
diff --git a/src/main/java/net/pl3x/purpur/entity/PhantomFlames.java b/src/main/java/net/pl3x/purpur/entity/PhantomFlames.java
|
diff --git a/src/main/java/net/pl3x/purpur/entity/PhantomFlames.java b/src/main/java/net/pl3x/purpur/entity/PhantomFlames.java
|
||||||
new file mode 100644
|
new file mode 100644
|
||||||
index 0000000000000000000000000000000000000000..929e4ff91c79e2ee72970d754bae270377ac9314
|
index 0000000000000000000000000000000000000000..3059078c37deb35fcd20e27767f9b79503802cf4
|
||||||
--- /dev/null
|
--- /dev/null
|
||||||
+++ b/src/main/java/net/pl3x/purpur/entity/PhantomFlames.java
|
+++ b/src/main/java/net/pl3x/purpur/entity/PhantomFlames.java
|
||||||
@@ -0,0 +1,125 @@
|
@@ -0,0 +1,128 @@
|
||||||
+package net.pl3x.purpur.entity;
|
+package net.pl3x.purpur.entity;
|
||||||
+
|
+
|
||||||
+import net.minecraft.server.BlockBase;
|
+import net.minecraft.server.BlockBase;
|
||||||
@@ -6339,6 +6339,9 @@ index 0000000000000000000000000000000000000000..929e4ff91c79e2ee72970d754bae2703
|
|||||||
+ Entity shooter = getShooter();
|
+ Entity shooter = getShooter();
|
||||||
+ if (shooter instanceof EntityLiving) {
|
+ if (shooter instanceof EntityLiving) {
|
||||||
+ rayTrace.getEntity().damageEntity(DamageSource.indirectMobAttack(this, (EntityLiving) shooter).setProjectile(), world.purpurConfig.phantomFlameDamage);
|
+ rayTrace.getEntity().damageEntity(DamageSource.indirectMobAttack(this, (EntityLiving) shooter).setProjectile(), world.purpurConfig.phantomFlameDamage);
|
||||||
|
+ if (world.purpurConfig.phantomFlameFireTime > 0) {
|
||||||
|
+ rayTrace.getEntity().setOnFire(world.purpurConfig.phantomFlameFireTime);
|
||||||
|
+ }
|
||||||
+ }
|
+ }
|
||||||
+ }
|
+ }
|
||||||
+
|
+
|
||||||
|
|||||||
Reference in New Issue
Block a user