mirror of
https://github.com/PurpurMC/Purpur.git
synced 2026-02-19 01:17:42 +01:00
Iron golem poppy calms anger
This commit is contained in:
@@ -5,7 +5,7 @@ Subject: [PATCH] Extend Halloween Optimization
|
||||
|
||||
|
||||
diff --git a/src/main/java/net/minecraft/world/entity/ambient/EntityBat.java b/src/main/java/net/minecraft/world/entity/ambient/EntityBat.java
|
||||
index bd02320d450a7fd7254f01b1c44ef421c1810ea7..dcc1f203b9bc0510d4c7fedbb4db7a10855d630f 100644
|
||||
index bd02320d450a7fd7254f01b1c44ef421c1810ea7..33f380c543677b5a382d1e9163cd0bbd3585be4b 100644
|
||||
--- a/src/main/java/net/minecraft/world/entity/ambient/EntityBat.java
|
||||
+++ b/src/main/java/net/minecraft/world/entity/ambient/EntityBat.java
|
||||
@@ -311,17 +311,31 @@ public class EntityBat extends EntityAmbient {
|
||||
@@ -34,10 +34,10 @@ index bd02320d450a7fd7254f01b1c44ef421c1810ea7..dcc1f203b9bc0510d4c7fedbb4db7a10
|
||||
- int j = localdate.get(ChronoField.MONTH_OF_YEAR);
|
||||
- isSpookySeason = j == 10 && i >= 20 || j == 11 && i <= 3;
|
||||
+ LocalDate localdate = LocalDate.now();
|
||||
+ int month = localdate.get(ChronoField.DAY_OF_MONTH);
|
||||
+ int day = localdate.get(ChronoField.MONTH_OF_YEAR);
|
||||
+ isHalloween = day == 10 && month == 31; // Purpur
|
||||
+ isSpookySeason = day == 10 && month >= 20 || day == 11 && month <= 3;
|
||||
+ int day = localdate.get(ChronoField.DAY_OF_MONTH);
|
||||
+ int month = localdate.get(ChronoField.MONTH_OF_YEAR);
|
||||
+ isHalloween = month == 10 && day == 31; // Purpur
|
||||
+ isSpookySeason = month == 10 && day >= 20 || month == 11 && day <= 3;
|
||||
lastSpookyCheck = MinecraftServer.currentTick;
|
||||
}
|
||||
-
|
||||
|
||||
Reference in New Issue
Block a user