Permalink
Browse files

Support tridents for shoot_projectile() and entity_spec()

  • Loading branch information...
PseudoKnight committed Nov 8, 2018
1 parent 43b2850 commit 9952089c6f91fd3b33ae5e3f74e7a81f6938972a
@@ -18,5 +18,6 @@
SPLASH_POTION,
TIPPED_ARROW,
THROWN_EXP_BOTTLE,
TRIDENT,
WITHER_SKULL
}
@@ -1751,6 +1751,7 @@ public Construct exec(Target t, Environment environment, Construct... args) thro
specArray.set(entity_spec.KEY_AREAEFFECTCLOUD_WAITTIME, new CInt(cloud.getWaitTime(), t), t);
break;
case ARROW:
case TRIDENT:
MCArrow arrow = (MCArrow) entity;
specArray.set(entity_spec.KEY_ARROW_CRITICAL, CBoolean.get(arrow.isCritical()), t);
specArray.set(entity_spec.KEY_ARROW_KNOCKBACK, new CInt(arrow.getKnockbackStrength(), t), t);
@@ -2234,6 +2235,7 @@ public Construct exec(Target t, Environment environment, Construct... args) thro
}
break;
case ARROW:
case TRIDENT:
MCArrow arrow = (MCArrow) entity;
for(String index : specArray.stringKeySet()) {
switch(index.toLowerCase()) {

0 comments on commit 9952089

Please sign in to comment.