mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-10 12:02:36 +01:00
19 lines
865 B
Diff
19 lines
865 B
Diff
|
--- a/net/minecraft/world/damagesource/DamageSources.java
|
||
|
+++ b/net/minecraft/world/damagesource/DamageSources.java
|
||
|
@@ -39,9 +39,15 @@
|
||
|
private final DamageSource sweetBerryBush;
|
||
|
private final DamageSource freeze;
|
||
|
private final DamageSource stalagmite;
|
||
|
+ // CraftBukkit start
|
||
|
+ public final DamageSource melting;
|
||
|
+ public final DamageSource poison;
|
||
|
|
||
|
public DamageSources(IRegistryCustom iregistrycustom) {
|
||
|
this.damageTypes = iregistrycustom.registryOrThrow(Registries.DAMAGE_TYPE);
|
||
|
+ this.melting = this.source(DamageTypes.ON_FIRE).melting();
|
||
|
+ this.poison = this.source(DamageTypes.MAGIC).poison();
|
||
|
+ // CraftBukkit end
|
||
|
this.inFire = this.source(DamageTypes.IN_FIRE);
|
||
|
this.lightningBolt = this.source(DamageTypes.LIGHTNING_BOLT);
|
||
|
this.onFire = this.source(DamageTypes.ON_FIRE);
|