3
0
Mirror von https://github.com/Moulberry/AxiomPaperPlugin.git synchronisiert 2024-11-08 17:40:04 +01:00

Fix Block Entity protocol

Dieser Commit ist enthalten in:
Moulberry 2023-09-06 12:05:15 +08:00
Ursprung 6acfa7cf2b
Commit a720c1da4b

Datei anzeigen

@ -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<UUID> activeAxiomPlayers = Collections.newSetFromMap(new ConcurrentHashMap<>());