2019-06-14 04:27:40 +02:00
|
|
|
From f3e67244df3ab9e3a6e9bb0828d6b666f4c712e1 Mon Sep 17 00:00:00 2001
|
2019-05-05 04:23:25 +02:00
|
|
|
From: Aikar <aikar@aikar.co>
|
|
|
|
Date: Sun, 29 Jul 2018 22:58:47 -0400
|
|
|
|
Subject: [PATCH] MC-111480: Start Entity ID's at 1
|
|
|
|
|
|
|
|
DataWatchers that store Entity ID's treat 0 as special,
|
|
|
|
and can break things such as Elytra Fireworks.
|
|
|
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/server/Entity.java b/src/main/java/net/minecraft/server/Entity.java
|
2019-06-06 17:36:57 +02:00
|
|
|
index 50b6765a55..8a95e0f117 100644
|
2019-05-05 04:23:25 +02:00
|
|
|
--- a/src/main/java/net/minecraft/server/Entity.java
|
|
|
|
+++ b/src/main/java/net/minecraft/server/Entity.java
|
2019-05-06 04:58:04 +02:00
|
|
|
@@ -92,7 +92,7 @@ public abstract class Entity implements INamableTileEntity, ICommandListener, Ke
|
2019-05-05 04:23:25 +02:00
|
|
|
// CraftBukkit end
|
|
|
|
|
|
|
|
protected static final Logger LOGGER = LogManager.getLogger();
|
|
|
|
- private static final AtomicInteger entityCount = new AtomicInteger();
|
|
|
|
+ private static final AtomicInteger entityCount = new AtomicInteger(1); // paper - start entity count from 1
|
|
|
|
private static final List<ItemStack> c = Collections.emptyList();
|
|
|
|
private static final AxisAlignedBB d = new AxisAlignedBB(0.0D, 0.0D, 0.0D, 0.0D, 0.0D, 0.0D);
|
|
|
|
private static double e = 1.0D;
|
|
|
|
--
|
|
|
|
2.21.0
|
|
|
|
|