mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-30 16:19:03 +01:00
Silly rabbits, eggs are for chickens
This commit is contained in:
parent
3229f3b8b8
commit
2caf69d5ab
1 changed files with 0 additions and 29 deletions
|
@ -1,29 +0,0 @@
|
|||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: Zach Brown <1254957+zachbr@users.noreply.github.com>
|
||||
Date: Sat, 31 Mar 2018 22:49:05 -0400
|
||||
Subject: [PATCH] Easter and April Fools fall on the same day
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
|
||||
¯\_(ツ)_/¯
|
||||
|
||||
diff --git a/src/main/java/net/minecraft/server/EntityEgg.java b/src/main/java/net/minecraft/server/EntityEgg.java
|
||||
index 08131afc..82c37b87 100644
|
||||
--- a/src/main/java/net/minecraft/server/EntityEgg.java
|
||||
+++ b/src/main/java/net/minecraft/server/EntityEgg.java
|
||||
@@ -0,0 +0,0 @@ public class EntityEgg extends EntityProjectile {
|
||||
}
|
||||
EntityType hatchingType = EntityType.CHICKEN;
|
||||
|
||||
+ // Paper start - 2018-04-01 is easter and April fools day... come on now how can we not
|
||||
+ java.time.LocalDate today = java.time.LocalDate.now();
|
||||
+ if (today.getDayOfMonth() == 1 && today.getMonth() == java.time.Month.APRIL && today.getYear() == 2018) {
|
||||
+ hatchingType = EntityType.RABBIT;
|
||||
+ }
|
||||
+ // Paper end
|
||||
+
|
||||
Entity shooter = this.getShooter();
|
||||
if (shooter instanceof EntityPlayer) {
|
||||
PlayerEggThrowEvent event = new PlayerEggThrowEvent((Player) shooter.getBukkitEntity(), (org.bukkit.entity.Egg) this.getBukkitEntity(), hatching, b0, hatchingType);
|
||||
--
|
Loading…
Reference in a new issue