From a720c1da4b34574a6a630a3bf8c00f9dca5fb848 Mon Sep 17 00:00:00 2001 From: Moulberry Date: Wed, 6 Sep 2023 12:05:15 +0800 Subject: [PATCH] Fix Block Entity protocol --- src/main/java/com/moulberry/axiom/AxiomPaper.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/com/moulberry/axiom/AxiomPaper.java b/src/main/java/com/moulberry/axiom/AxiomPaper.java index d79faa7..0b096eb 100644 --- a/src/main/java/com/moulberry/axiom/AxiomPaper.java +++ b/src/main/java/com/moulberry/axiom/AxiomPaper.java @@ -1,5 +1,6 @@ package com.moulberry.axiom; +import com.moulberry.axiom.buffer.CompressedBlockEntity; import com.moulberry.axiom.packet.*; import io.netty.buffer.Unpooled; import io.netty.channel.Channel; @@ -29,12 +30,14 @@ public class AxiomPaper extends JavaPlugin implements Listener { @Override public void onEnable() { Bukkit.getPluginManager().registerEvents(this, this); + CompressedBlockEntity.initialize(this); Messenger msg = Bukkit.getMessenger(); msg.registerOutgoingPluginChannel(this, "axiom:enable"); msg.registerOutgoingPluginChannel(this, "axiom:initialize_hotbars"); msg.registerOutgoingPluginChannel(this, "axiom:set_editor_views"); + msg.registerOutgoingPluginChannel(this, "axiom:block_entities"); final Set activeAxiomPlayers = Collections.newSetFromMap(new ConcurrentHashMap<>());