Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-19 04:50:06 +01:00
Revert "Entity's bukkitEntity field now holds a CraftEntity by default."
This reverts commit 7a64e864fc481f001812d78cc4d767872c458706.
Dieser Commit ist enthalten in:
Ursprung
bf9d55d9ed
Commit
d98c8e2100
@ -2,8 +2,6 @@ package net.minecraft.server;
|
|||||||
|
|
||||||
// CraftBukkit start
|
// CraftBukkit start
|
||||||
import org.bukkit.craftbukkit.CraftServer;
|
import org.bukkit.craftbukkit.CraftServer;
|
||||||
import org.bukkit.craftbukkit.CraftWorld;
|
|
||||||
import org.bukkit.craftbukkit.entity.CraftEntity;
|
|
||||||
import org.bukkit.event.Event.Type;
|
import org.bukkit.event.Event.Type;
|
||||||
import org.bukkit.event.entity.EntityCombustEvent;
|
import org.bukkit.event.entity.EntityCombustEvent;
|
||||||
import org.bukkit.event.entity.EntityDamageByBlockEvent;
|
import org.bukkit.event.entity.EntityDamageByBlockEvent;
|
||||||
@ -119,7 +117,7 @@ public abstract class Entity {
|
|||||||
af.a(0, ((Byte.valueOf((byte) 0))));
|
af.a(0, ((Byte.valueOf((byte) 0))));
|
||||||
a();
|
a();
|
||||||
|
|
||||||
bukkitEntity = new CraftEntity(((WorldServer) l).getServer(), this); // CraftBukkit
|
bukkitEntity = null; // CraftBukkit
|
||||||
}
|
}
|
||||||
|
|
||||||
protected abstract void a();
|
protected abstract void a();
|
||||||
|
@ -7,7 +7,7 @@ import org.bukkit.World;
|
|||||||
import org.bukkit.craftbukkit.CraftServer;
|
import org.bukkit.craftbukkit.CraftServer;
|
||||||
import org.bukkit.util.Vector;
|
import org.bukkit.util.Vector;
|
||||||
|
|
||||||
public class CraftEntity implements org.bukkit.entity.Entity {
|
public abstract class CraftEntity implements org.bukkit.entity.Entity {
|
||||||
protected final CraftServer server;
|
protected final CraftServer server;
|
||||||
private Entity entity;
|
private Entity entity;
|
||||||
|
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren