mirror of
https://github.com/PurpurMC/Purpur.git
synced 2026-02-20 18:07:43 +01:00
fix compile issues
This commit is contained in:
24
patches/server/0300-Fix-MC-123848.patch
Normal file
24
patches/server/0300-Fix-MC-123848.patch
Normal file
@@ -0,0 +1,24 @@
|
||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: BillyGalbreath <blake.galbreath@gmail.com>
|
||||
Date: Fri, 30 Sep 2022 16:56:07 -0500
|
||||
Subject: [PATCH] Fix MC-123848
|
||||
|
||||
|
||||
diff --git a/src/main/java/net/minecraft/world/entity/decoration/ItemFrame.java b/src/main/java/net/minecraft/world/entity/decoration/ItemFrame.java
|
||||
index 8c09cac6e423f707f1b641c2b3350dcee4372f5f..2edf53d37508acd15bab7730ecb5d9fc0ce18e23 100644
|
||||
--- a/src/main/java/net/minecraft/world/entity/decoration/ItemFrame.java
|
||||
+++ b/src/main/java/net/minecraft/world/entity/decoration/ItemFrame.java
|
||||
@@ -288,6 +288,13 @@ public class ItemFrame extends HangingEntity {
|
||||
}
|
||||
}
|
||||
|
||||
+ // Purpur start
|
||||
+ @Nullable
|
||||
+ public net.minecraft.world.entity.item.ItemEntity spawnAtLocation(ItemStack stack) {
|
||||
+ return this.spawnAtLocation(stack, getDirection().equals(Direction.DOWN) ? -0.6F : 0.0F);
|
||||
+ }
|
||||
+ // Purpur end
|
||||
+
|
||||
private void removeFramedMap(ItemStack itemstack) {
|
||||
// Paper start - fix MC-252817 (green map markers do not disappear)
|
||||
this.getFramedMapIdFromItem(itemstack).ifPresent((i) -> {
|
||||
Reference in New Issue
Block a user