We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ad1642d commit 3d859a5Copy full SHA for 3d859a5
1 file changed
src/main/java/org/mcmonkey/sentinel/SentinelWeaponHelper.java
@@ -186,6 +186,10 @@ public void fireTrident(Location target) {
186
Location spawnAt = getLivingEntity().getEyeLocation().clone().add(forward.clone().multiply(sentinel.firingMinimumRange() + 2));
187
Trident ent = (Trident) spawnAt.getWorld().spawnEntity(spawnAt, EntityType.TRIDENT);
188
ent.setShooter(getLivingEntity());
189
+ ItemStack it = itemHelper.getHeldItem();
190
+ if (it != null && it.getType() == Material.TRIDENT) {
191
+ ent.setItem(it);
192
+ }
193
if (SentinelVersionCompat.v1_14) {
194
ent.setPickupStatus(AbstractArrow.PickupStatus.DISALLOWED);
195
}
0 commit comments