mirror of
https://github.com/Samsuik/Sakura.git
synced 2025-12-28 03:09:07 +00:00
Rename impactNonLiving -> impactLiving
This commit is contained in:
@@ -142,7 +142,7 @@ index 0000000000000000000000000000000000000000..3f6f34cc617efaad420485a7f613cfca
|
||||
+}
|
||||
diff --git a/src/main/java/me/samsuik/sakura/explosion/SakuraExplosion.java b/src/main/java/me/samsuik/sakura/explosion/SakuraExplosion.java
|
||||
new file mode 100644
|
||||
index 0000000000000000000000000000000000000000..31eec14e78612e4cd6941c09f8b9093f324dce7e
|
||||
index 0000000000000000000000000000000000000000..93c7be878632296683a794235455013c33bec9e7
|
||||
--- /dev/null
|
||||
+++ b/src/main/java/me/samsuik/sakura/explosion/SakuraExplosion.java
|
||||
@@ -0,0 +1,381 @@
|
||||
@@ -400,7 +400,7 @@ index 0000000000000000000000000000000000000000..31eec14e78612e4cd6941c09f8b9093f
|
||||
+ continue;
|
||||
+ }
|
||||
+
|
||||
+ impactNonLiving(entity, pos, section, x, y, z, exposure, radius);
|
||||
+ impactLiving(entity, pos, section, x, y, z, exposure, radius);
|
||||
+ }
|
||||
+
|
||||
+ return found;
|
||||
@@ -453,14 +453,14 @@ index 0000000000000000000000000000000000000000..31eec14e78612e4cd6941c09f8b9093f
|
||||
+ }
|
||||
+ } else {
|
||||
+ for (int i = 0; i < potential; ++i) {
|
||||
+ impactNonLiving(entity, pos, section, x, y, z, exposure, radius);
|
||||
+ impactLiving(entity, pos, section, x, y, z, exposure, radius);
|
||||
+ }
|
||||
+ }
|
||||
+ }
|
||||
+ }
|
||||
+ }
|
||||
+
|
||||
+ private void impactNonLiving(Entity entity, Vec3 pos, Entity[] section, double x, double y, double z, double exposure, double radius) {
|
||||
+ private void impactLiving(Entity entity, Vec3 pos, Entity[] section, double x, double y, double z, double exposure, double radius) {
|
||||
+ // CraftBukkit start
|
||||
+
|
||||
+ // Special case ender dragon only give knockback if no damage is cancelled
|
||||
|
||||
Reference in New Issue
Block a user