Skip to content
This repository was archived by the owner on Apr 13, 2025. It is now read-only.

Commit 97dcff4

Browse files
committed
set DamageCause to SUICIDE for scissor's DamageSource
1 parent b0d36ca commit 97dcff4

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

purpur-server/minecraft-patches/sources/net/minecraft/world/damagesource/DamageSource.java.patch

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,13 @@
99

1010
public DamageSource knownCause(final org.bukkit.event.entity.EntityDamageEvent.DamageCause cause) {
1111
final DamageSource damageSource = this.copy();
12-
@@ -42,6 +_,29 @@
12+
@@ -42,6 +_,30 @@
1313
return this.knownCause;
1414
}
1515

1616
+ // Purpur start - Dont run with scissors!
1717
+ public DamageSource scissors() {
18+
+ this.knownCause(org.bukkit.event.entity.EntityDamageEvent.DamageCause.SUICIDE);
1819
+ this.scissors = true;
1920
+ return this;
2021
+ }

0 commit comments

Comments
 (0)