From 252fa4a767531a401f5e13bffc96abad89ef43c5 Mon Sep 17 00:00:00 2001 From: BuildTools Date: Thu, 5 Dec 2019 19:53:21 +0100 Subject: [PATCH] untested rework of dependent scoreboard source --- SpigotCore_8/src/de/steamwar/scoreboard/SWScoreboard_8.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/SpigotCore_8/src/de/steamwar/scoreboard/SWScoreboard_8.java b/SpigotCore_8/src/de/steamwar/scoreboard/SWScoreboard_8.java index 9afcbc9..cbfb653 100644 --- a/SpigotCore_8/src/de/steamwar/scoreboard/SWScoreboard_8.java +++ b/SpigotCore_8/src/de/steamwar/scoreboard/SWScoreboard_8.java @@ -3,6 +3,7 @@ package de.steamwar.scoreboard; import com.comphenix.protocol.PacketType; import com.comphenix.protocol.ProtocolLibrary; import com.comphenix.protocol.events.PacketContainer; +import net.minecraft.server.v1_8_R3.IScoreboardCriteria; import org.bukkit.Bukkit; import org.bukkit.entity.Player; @@ -27,7 +28,7 @@ public class SWScoreboard_8 { createPacket.getStrings().write(0, "AAA"); createPacket.getIntegers().write(0, 0); createPacket.getStrings().write(1, title); - createPacket.getStrings().write(2, "integer"); + createPacket.getEnumModifier(IScoreboardCriteria.EnumScoreboardHealthDisplay.class, 0).getTarget(); sendPacket(player, createPacket); }