mirror of
https://github.com/YatopiaMC/Yatopia.git
synced 2024-11-06 02:42:34 +01:00
27 lines
1.0 KiB
Diff
27 lines
1.0 KiB
Diff
From 732cfeed9395bbcedcb3792517e6503172aa05ea Mon Sep 17 00:00:00 2001
|
|
From: tr7zw <tr7zw@live.de>
|
|
Date: Wed, 26 Feb 2020 21:39:58 +0100
|
|
Subject: [PATCH] Don't save Fireworks and Arrows
|
|
|
|
---
|
|
src/main/java/net/minecraft/server/Entity.java | 3 ++-
|
|
1 file changed, 2 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/src/main/java/net/minecraft/server/Entity.java b/src/main/java/net/minecraft/server/Entity.java
|
|
index 3cdba5c42..429666193 100644
|
|
--- a/src/main/java/net/minecraft/server/Entity.java
|
|
+++ b/src/main/java/net/minecraft/server/Entity.java
|
|
@@ -1636,7 +1636,8 @@ public abstract class Entity implements INamableTileEntity, ICommandListener, Ke
|
|
}
|
|
|
|
public boolean c(NBTTagCompound nbttagcompound) {
|
|
- String s = this.getSaveID();
|
|
+ if(this instanceof EntityFireworks || this instanceof EntityArrow)return false; // YAPFA
|
|
+ String s = this.getSaveID();
|
|
|
|
if (this.persist && !this.dead && s != null) { // CraftBukkit - persist flag
|
|
nbttagcompound.setString("id", s);
|
|
--
|
|
2.25.1.windows.1
|
|
|