mirror of
https://github.com/PurpurMC/Purpur.git
synced 2026-02-20 18:07:43 +01:00
Short enderman height
This commit is contained in:
committed by
granny
parent
d774aa3ef4
commit
f15dee9c08
@@ -1,5 +1,13 @@
|
||||
--- a/net/minecraft/world/entity/monster/EnderMan.java
|
||||
+++ b/net/minecraft/world/entity/monster/EnderMan.java
|
||||
@@ -385,6 +_,7 @@
|
||||
public boolean hurtServer(ServerLevel level, DamageSource damageSource, float amount) {
|
||||
if (this.isInvulnerableTo(level, damageSource)) {
|
||||
return false;
|
||||
+ } else if (org.purpurmc.purpur.PurpurConfig.endermanShortHeight && damageSource.is(net.minecraft.world.damagesource.DamageTypes.IN_WALL)) { return false; // Purpur - no suffocation damage if short height - Short enderman height
|
||||
} else {
|
||||
boolean flag = damageSource.getDirectEntity() instanceof ThrownPotion;
|
||||
if (!damageSource.is(DamageTypeTags.IS_PROJECTILE) && !flag) {
|
||||
@@ -484,6 +_,7 @@
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user