Skip to content

Commit

Permalink
Allow players to shoot and feel pain again >:) (#55)
Browse files Browse the repository at this point in the history
  • Loading branch information
ZekeZDev authored Dec 3, 2024
1 parent ea805ae commit 2592340
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/us/potatoboy/skywars/game/SkyWarsActive.java
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ private EventResult onPlayerDamage(ServerPlayerEntity player, DamageSource sourc
this.statistics.forPlayer(player).increment(StatisticKeys.DAMAGE_TAKEN, amount);
}

return EventResult.DENY;
return EventResult.PASS;
}

private EventResult onPlayerDeath(ServerPlayerEntity player, DamageSource source) {
Expand Down Expand Up @@ -271,7 +271,7 @@ private EventResult onProjectiveHit(ProjectileEntity projectileEntity, EntityHit
private EventResult onArrowFire(ServerPlayerEntity player, ItemStack itemStack, ArrowItem arrowItem, int i, PersistentProjectileEntity persistentProjectileEntity) {
this.statistics.forPlayer(player).increment(SkywarsStatistics.ARROWS_SHOT, 1);

return EventResult.DENY;
return EventResult.PASS;
}

private Text getDeathMessage(ServerPlayerEntity player, DamageSource source) {
Expand Down

0 comments on commit 2592340

Please sign in to comment.