fix missed override of getAddEntityPacket
@@ -14,6 +14,7 @@ import net.minecraft.core.Direction;
import net.minecraft.core.SectionPos;
import net.minecraft.nbt.CompoundTag;
import net.minecraft.network.protocol.Packet;
+import net.minecraft.network.protocol.game.ClientGamePacketListener;
import net.minecraft.network.protocol.game.ClientboundAddEntityPacket;
import net.minecraft.server.level.ServerLevel;
import net.minecraft.server.level.ServerPlayer;
@@ -172,7 +173,7 @@ public class SecurityCamera extends Entity {
public void readAdditionalSaveData(CompoundTag tag) {}
@Override
- public Packet<?> getAddEntityPacket() {
+ public Packet<ClientGamePacketListener> getAddEntityPacket() {
return new ClientboundAddEntityPacket(this);
}
