mirror of
https://github.com/LeavesMC/Leaves.git
synced 2025-12-19 14:59:32 +00:00
--------- Co-authored-by: Lumine1909 <133463833+Lumine1909@users.noreply.github.com> Co-authored-by: violetc <58360096+s-yh-china@users.noreply.github.com> Co-authored-by: Helvetica Volubi <88063803+Suisuroru@users.noreply.github.com>
20 lines
1.1 KiB
Diff
20 lines
1.1 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: Helvetica Volubi <suisuroru@blue-millennium.fun>
|
|
Date: Mon, 19 May 2025 00:42:17 +0800
|
|
Subject: [PATCH] Old zombie reinforcement
|
|
|
|
|
|
diff --git a/net/minecraft/world/entity/monster/Zombie.java b/net/minecraft/world/entity/monster/Zombie.java
|
|
index afe4a2304268224f6b0a1cc40a41f7b67f9d3275..1a5f3bdfcd6811bd26f75f43e325cc0bd3bbc814 100644
|
|
--- a/net/minecraft/world/entity/monster/Zombie.java
|
|
+++ b/net/minecraft/world/entity/monster/Zombie.java
|
|
@@ -341,7 +341,7 @@ public class Zombie extends Monster {
|
|
int floor = Mth.floor(this.getX());
|
|
int floor1 = Mth.floor(this.getY());
|
|
int floor2 = Mth.floor(this.getZ());
|
|
- EntityType<? extends Zombie> type = this.getType();
|
|
+ EntityType<? extends Zombie> type = org.leavesmc.leaves.LeavesConfig.modify.oldMC.oldZombieReinforcement ? EntityType.ZOMBIE : this.getType(); // Leaves end - old zombie reinforcement
|
|
Zombie zombie = type.create(level, EntitySpawnReason.REINFORCEMENT);
|
|
if (zombie == null) {
|
|
return true;
|