File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
src/main/java/me/hsgamer/gamesinthebox/pinata/feature Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 55 <modelVersion >4.0.0</modelVersion >
66
77 <artifactId >pinata</artifactId >
8- <version >1.0.2 </version >
8+ <version >1.0.3 </version >
99 <packaging >jar</packaging >
1010
1111 <name >Pinata</name >
Original file line number Diff line number Diff line change @@ -68,13 +68,13 @@ public void onPinataDamage(EntityDamageByEntityEvent event) {
6868 Entity entity = event .getEntity ();
6969 if (!pinataFeature .contains (entity )) return ;
7070
71- event .setDamage (0 );
72-
7371 if (damageAsPoint ) {
7472 pointFeature .applyPoint (player .getUniqueId (), (int ) event .getFinalDamage ());
7573 } else {
7674 pointFeature .applyPoint (player .getUniqueId (), Pinata .POINT_HIT );
7775 }
76+
77+ event .setDamage (0 );
7878 }
7979
8080 @ EventHandler (priority = EventPriority .LOWEST , ignoreCancelled = true )
You can’t perform that action at this time.
0 commit comments