mirror of
https://github.com/PurpurMC/Purpur.git
synced 2026-02-17 08:27:43 +01:00
set DamageCause to SUICIDE for scissor's DamageSource
This commit is contained in:
@@ -9,12 +9,13 @@
|
|||||||
|
|
||||||
public DamageSource knownCause(final org.bukkit.event.entity.EntityDamageEvent.DamageCause cause) {
|
public DamageSource knownCause(final org.bukkit.event.entity.EntityDamageEvent.DamageCause cause) {
|
||||||
final DamageSource damageSource = this.copy();
|
final DamageSource damageSource = this.copy();
|
||||||
@@ -42,6 +_,29 @@
|
@@ -42,6 +_,30 @@
|
||||||
return this.knownCause;
|
return this.knownCause;
|
||||||
}
|
}
|
||||||
|
|
||||||
+ // Purpur start - Dont run with scissors!
|
+ // Purpur start - Dont run with scissors!
|
||||||
+ public DamageSource scissors() {
|
+ public DamageSource scissors() {
|
||||||
|
+ this.knownCause(org.bukkit.event.entity.EntityDamageEvent.DamageCause.SUICIDE);
|
||||||
+ this.scissors = true;
|
+ this.scissors = true;
|
||||||
+ return this;
|
+ return this;
|
||||||
+ }
|
+ }
|
||||||
|
|||||||
Reference in New Issue
Block a user