File tree Expand file tree Collapse file tree
pylon-core/src/main/kotlin/io/github/pylonmc/pylon/core/entity Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -41,19 +41,19 @@ object EntityListener : Listener {
4141
4242 @EventHandler
4343 fun handle (event : ProjectileHitEvent ) {
44- if (event.entity is AbstractArrow ){
44+ if (event.entity is AbstractArrow ) {
4545 val arrowItem = PylonItem .fromStack((event.entity as AbstractArrow ).itemStack)
46- if (arrowItem is PylonArrow ){
46+ if (arrowItem is PylonArrow ) {
4747 arrowItem.onArrowHit(event)
4848 }
4949 }
5050 }
5151
5252 @EventHandler
5353 fun handle (event : EntityDamageByEntityEvent ) {
54- if (event.damager is AbstractArrow ){
54+ if (event.damager is AbstractArrow ) {
5555 val arrowItem = PylonItem .fromStack((event.damager as AbstractArrow ).itemStack)
56- if (arrowItem is PylonArrow ){
56+ if (arrowItem is PylonArrow ) {
5757 arrowItem.onArrowDamage(event)
5858 }
5959 }
You can’t perform that action at this time.
0 commit comments