mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-25 16:50:17 +01:00
e15167251b
* Drop original implementation for old player sample API * Add extended PaperServerListPingEvent Add a new event that extends the original ServerListPingEvent and allows full control of the response sent to the client. * Implement deprecated player sample API
25 lines
1 KiB
Diff
25 lines
1 KiB
Diff
From 6f6d06130c0008bff90b2008873ca6809fb803fc Mon Sep 17 00:00:00 2001
|
|
From: Brokkonaut <hannos17@gmx.de>
|
|
Date: Fri, 11 Aug 2017 03:29:26 +0200
|
|
Subject: [PATCH] MC-94186 Fix dragon egg falling in lazy chunks
|
|
|
|
Fixes falling dragon eggs in lazy chunks fall to the block below the last empty block and replacing that block with them.
|
|
|
|
See also https://bugs.mojang.com/browse/MC-94186
|
|
|
|
diff --git a/src/main/java/net/minecraft/server/BlockDragonEgg.java b/src/main/java/net/minecraft/server/BlockDragonEgg.java
|
|
index ce186f825..291342c90 100644
|
|
--- a/src/main/java/net/minecraft/server/BlockDragonEgg.java
|
|
+++ b/src/main/java/net/minecraft/server/BlockDragonEgg.java
|
|
@@ -44,7 +44,7 @@ public class BlockDragonEgg extends Block {
|
|
}
|
|
|
|
if (blockposition1.getY() > 0) {
|
|
- world.setTypeAndData(blockposition1, this.getBlockData(), 2);
|
|
+ world.setTypeAndData(blockposition1.up(), this.getBlockData(), 2); // Paper
|
|
}
|
|
}
|
|
|
|
--
|
|
2.16.2
|
|
|